diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index bcd9fe09..9e0bc7ad 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -1282,13 +1282,9 @@ public class CharacterItemManager { } else{ i.setNumOfItems(count); for(Item item : purge){ - this.delete(item); + this.removeItemFromInventory(item); } - this.inventory.removeAll(purge); - this.inventory.add(i); } - this.updateInventory(); - }else { this.inventory.add(i); this.itemIDtoType.put(i.getObjectUUID(), i.getObjectType().ordinal());