From 8d32927241fe7a80c76e35e02604ff6d2caf23fa Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 9 Mar 2024 19:41:17 -0600 Subject: [PATCH] resource stacking bug --- src/engine/objects/CharacterItemManager.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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());