From fb2465ccfd1196b9cff0f06642f9c5948f8fad5f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 4 Mar 2024 06:49:18 -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 d31a63c3..6f10f73f 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -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); }