From 02f376f4188f40943c34b849ac068e80a87486e2 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 14 Feb 2024 20:31:19 -0600 Subject: [PATCH] inventory junking --- src/engine/net/client/ClientMessagePump.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index 919a4a1c..011f0c20 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -562,9 +562,8 @@ public class ClientMessagePump implements NetMsgHandler { if (i.isCanDestroy()) { if (itemManager.delete(i) == true) { - int value = i.getItemBase().getBaseValue(); - if(sourcePlayer.getCharItemManager().getGoldInventory().getNumOfItems() + value <= 10000000) - sourcePlayer.getCharItemManager().addGoldToInventory(value,true); + sourcePlayer.getCharItemManager().addGoldToInventory(i.getItemBase().getBaseValue(),false); + sourcePlayer.getCharItemManager().updateInventory(); Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg); DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); }