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;