From 85077a5e56bf05fd4bdc2711081ca58da6f2eaab Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 20 May 2024 14:22:06 -0500 Subject: [PATCH] databse update for stacked resources --- 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 f1121716..10d3a935 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -1470,7 +1470,9 @@ public class ClientMessagePump implements NetMsgHandler { int itemID = item.getItemBaseID(); int meID = me.getItemBase().getUUID(); if(itemID == meID){ - int maxStack = Warehouse.maxResources.get(meID); + if(Warehouse.maxResources.isEmpty()) + Warehouse.getMaxResources(); + int maxStack = Warehouse.maxResources.get(itemID); if(maxStack > item.getNumOfItems() + 1){ item.setNumOfItems(item.getNumOfItems() + 1); stacked = true;