Browse Source

inventory junking

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
daaa1d9ece
  1. 3
      src/engine/net/client/ClientMessagePump.java

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

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

Loading…
Cancel
Save