diff --git a/src/engine/net/client/handlers/ItemProductionMsgHandler.java b/src/engine/net/client/handlers/ItemProductionMsgHandler.java index ae2dd5cb..9f96a484 100644 --- a/src/engine/net/client/handlers/ItemProductionMsgHandler.java +++ b/src/engine/net/client/handlers/ItemProductionMsgHandler.java @@ -350,7 +350,7 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { if (targetItem == null) return; - if (!vendor.charItemManager.forgeContains(targetItem, vendor)) + if (!ForgeManager.vendorItemLookup.get(vendor).contains(targetItem)) return; // Cannot junk items without a forge! diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index 70f2e7d5..0ba04ba4 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -1353,12 +1353,6 @@ public class CharacterItemManager { return inventory.contains(item); } - public synchronized boolean forgeContains(Item item, NPC vendor) { - if (item.template.item_type.equals(ItemType.GOLD)) - return (this.getGoldInventory() != null && this.goldInventory.getObjectUUID() == item.getObjectUUID()); - return ForgeManager.vendorItemLookup.get(vendor).contains(item); - } - public synchronized boolean vaultContains(Item item) { if (item.template.item_type.equals(ItemType.GOLD)) return (this.getGoldVault() != null && this.goldVault.getObjectUUID() == item.getObjectUUID());