From f2e4e8062ed68b013ea24e3e28fe2c018284a008 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 13 May 2024 16:29:10 -0500 Subject: [PATCH] cant inventory junk more than 10 mil --- src/engine/net/client/ClientMessagePump.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index c5b1002a..a7864bcb 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -574,10 +574,13 @@ public class ClientMessagePump implements NetMsgHandler { return; if (i.canDestroy) { + int value = i.getItemBase().value; + if(i.getItemBase().isRune()) + value = 500000; + if(sourcePlayer.getCharItemManager().getGoldInventory().getNumOfItems() + value > 10000000){ + return; + } if (itemManager.delete(i) == true) { - int value = i.getItemBase().value; - if(i.getItemBase().isRune()) - value = 500000; sourcePlayer.getCharItemManager().addGoldToInventory(value,false); sourcePlayer.getCharItemManager().updateInventory(); Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg);