From 4cb0f28e57f8c41c54d8f895dee4d4f1586269e7 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 14 Mar 2024 21:06:26 -0500 Subject: [PATCH] resource dupe --- src/engine/objects/CharacterItemManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index 3acec039..20b0e060 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -1268,7 +1268,9 @@ public class CharacterItemManager { for(Item item : purge){ count += item.getNumOfItems(); this.removeItemFromInventory(item); + item.setOwner(null); item.junk(); + } Item resource = new MobLoot(this.getOwner(),i.getItemBase(),count,false).promoteToItem((PlayerCharacter)this.getOwner()); this.inventory.add(resource);