Browse Source

Inventory Junking

birdbane
FatBoy-DOTC 8 months ago
parent
commit
fb2465ccfd
  1. 3
      src/engine/net/client/ClientMessagePump.java

3
src/engine/net/client/ClientMessagePump.java

@ -562,6 +562,9 @@ public class ClientMessagePump implements NetMsgHandler { @@ -562,6 +562,9 @@ public class ClientMessagePump implements NetMsgHandler {
if (i.isCanDestroy())
if (itemManager.delete(i) == true) {
int value = i.getItemBase().getBaseValue();
sourcePlayer.getCharItemManager().addGoldToInventory(value,false);
sourcePlayer.getCharItemManager().updateInventory();
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
}

Loading…
Cancel
Save