From daaa1d9ecea4abd4905a2b4c3bf6d84d839e77bc Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 14 Feb 2024 20:21:47 -0600 Subject: [PATCH] inventory junking --- src/engine/net/client/ClientMessagePump.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index a52998a8..c5815532 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -564,6 +564,9 @@ public class ClientMessagePump implements NetMsgHandler { if (itemManager.delete(i) == true) { Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg); DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); + int value = i.getItemBase().getBaseValue(); + if(sourcePlayer.getCharItemManager().getGoldInventory().getNumOfItems() + value <= 10000000) + sourcePlayer.getCharItemManager().addGoldToInventory(value,false); } }