From a6cf68ef07e17f8f82e5e93bae7f977277eafe8d Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 9 Mar 2024 20:21:32 -0600 Subject: [PATCH] resource stacking bug --- src/engine/objects/CharacterItemManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index b4adfc5d..40d227a1 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -1265,7 +1265,7 @@ public class CharacterItemManager { } } } - i.setNumOfItems(count); + i = new MobLoot(this.getOwner(),i.getItemBase(),count,false).promoteToItem((PlayerCharacter)this.getOwner()); } this.inventory.add(i); this.itemIDtoType.put(i.getObjectUUID(), i.getObjectType().ordinal());