Browse Source

resource stacking bug

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
d058e7506a
  1. 5
      src/engine/objects/CharacterItemManager.java

5
src/engine/objects/CharacterItemManager.java

@ -1280,8 +1280,11 @@ public class CharacterItemManager { @@ -1280,8 +1280,11 @@ public class CharacterItemManager {
if (ib != null)
this.inventoryWeight += ib.getWeight();
} else{
this.inventory.removeAll(purge);
i.setNumOfItems(count);
for(Item item : purge){
this.delete(item);
}
this.inventory.removeAll(purge);
this.inventory.add(i);
}
this.updateInventory();

Loading…
Cancel
Save