From a14057b9df765b329dea9bac913ae3ee49c650a9 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 18 May 2024 08:44:04 -0500 Subject: [PATCH] resource stacking optimized location --- src/engine/net/client/ClientMessagePump.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index b9167d8d..9a3459b0 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -969,6 +969,9 @@ public class ClientMessagePump implements NetMsgHandler { return; } + if(item.getItemBase().getType().equals(ItemType.RESOURCE)) + player.getCharItemManager().StackResources(); + if (item.getItemBase().getType().equals(engine.Enum.ItemType.GOLD)) { // this is done to prevent the temporary goldItem item // (from the mob) from appearing in player's inventory. @@ -1020,7 +1023,6 @@ public class ClientMessagePump implements NetMsgHandler { item.lootLock.unlock(); } } - player.getCharItemManager().StackResources(); }