diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index 8afe99c3..3acec039 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -1262,12 +1262,13 @@ public class CharacterItemManager { if(item.getItemBaseID() == i.getItemBaseID()){ if(item.getNumOfItems() + count <= Warehouse.getMaxResources().get(i.getItemBaseID())){ purge.add(item); - count += item.getNumOfItems(); } } } for(Item item : purge){ + count += item.getNumOfItems(); this.removeItemFromInventory(item); + item.junk(); } Item resource = new MobLoot(this.getOwner(),i.getItemBase(),count,false).promoteToItem((PlayerCharacter)this.getOwner()); this.inventory.add(resource);