Browse Source

databse update for stacked resources

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
85077a5e56
  1. 4
      src/engine/net/client/ClientMessagePump.java

4
src/engine/net/client/ClientMessagePump.java

@ -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;

Loading…
Cancel
Save