|
|
@ -1470,7 +1470,9 @@ public class ClientMessagePump implements NetMsgHandler { |
|
|
|
int itemID = item.getItemBaseID(); |
|
|
|
int itemID = item.getItemBaseID(); |
|
|
|
int meID = me.getItemBase().getUUID(); |
|
|
|
int meID = me.getItemBase().getUUID(); |
|
|
|
if(itemID == meID){ |
|
|
|
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){ |
|
|
|
if(maxStack > item.getNumOfItems() + 1){ |
|
|
|
item.setNumOfItems(item.getNumOfItems() + 1); |
|
|
|
item.setNumOfItems(item.getNumOfItems() + 1); |
|
|
|
stacked = true; |
|
|
|
stacked = true; |
|
|
|