Browse Source

inventory junking

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
02f376f418
  1. 5
      src/engine/net/client/ClientMessagePump.java

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

@ -562,9 +562,8 @@ 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(i.getItemBase().getBaseValue(),false);
if(sourcePlayer.getCharItemManager().getGoldInventory().getNumOfItems() + value <= 10000000) sourcePlayer.getCharItemManager().updateInventory();
sourcePlayer.getCharItemManager().addGoldToInventory(value,true);
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg); Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
} }

Loading…
Cancel
Save