From 669db7f021273948223cb53ea5197ed8cb55cf19 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 18 Feb 2024 17:36:53 -0600 Subject: [PATCH] resource merchant work --- src/engine/objects/CharacterItemManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index 3f8b4907..833b04d5 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -1218,8 +1218,10 @@ public class CharacterItemManager { if (this.doesCharOwnThisItem(i.getObjectUUID()) == false) return false; if (this.inventory.contains(i)) { - this.inventory.remove(i); - this.itemIDtoType.remove(i.getObjectUUID()); + if(this.getOwner().getName().equals("Resource Merchant") == false){ + this.inventory.remove(i); + this.itemIDtoType.remove(i.getObjectUUID()); + } return true; } }