From b343f4d6d75232aa4cf79887569c8242d0493b37 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 14 Mar 2024 22:05:21 -0500 Subject: [PATCH] resource dupe --- src/engine/objects/CharacterItemManager.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index df143179..5e92e112 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -1254,16 +1254,16 @@ public class CharacterItemManager { } return false; } - } else if (i.getItemBase().getType().equals(ItemType.RESOURCE)) { - if(this.inventoryContainsResource(i)){ - Item resource = getResource(i); - if(resource != null){ - resource.setNumOfItems(resource.getNumOfItems() + i.getNumOfItems()); - return true; - } - } - } - + } //else if (i.getItemBase().getType().equals(ItemType.RESOURCE)) { + // if(this.inventoryContainsResource(i)){ + // Item resource = getResource(i); + // if(resource != null){ + // resource.setNumOfItems(resource.getNumOfItems() + i.getNumOfItems()); + // return true; + // } + //} + // } + this.inventory.add(i); this.itemIDtoType.put(i.getObjectUUID(), i.getObjectType().ordinal()); return true;