forked from MagicBane/Server
Inventory Junking
This commit is contained in:
@@ -562,6 +562,9 @@ public class ClientMessagePump implements NetMsgHandler {
|
|||||||
|
|
||||||
if (i.isCanDestroy())
|
if (i.isCanDestroy())
|
||||||
if (itemManager.delete(i) == true) {
|
if (itemManager.delete(i) == true) {
|
||||||
|
int value = i.getItemBase().getBaseValue();
|
||||||
|
sourcePlayer.getCharItemManager().addGoldToInventory(value,false);
|
||||||
|
sourcePlayer.getCharItemManager().updateInventory();
|
||||||
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg);
|
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg);
|
||||||
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user