From 127f80054fae3019ea0f5aaec8cd81cb0f088898 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 22 Apr 2024 00:03:03 -0400 Subject: [PATCH] Slot tracking update --- .../net/client/handlers/ItemProductionMsgHandler.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/engine/net/client/handlers/ItemProductionMsgHandler.java b/src/engine/net/client/handlers/ItemProductionMsgHandler.java index 48a7eea7..3ea16423 100644 --- a/src/engine/net/client/handlers/ItemProductionMsgHandler.java +++ b/src/engine/net/client/handlers/ItemProductionMsgHandler.java @@ -146,14 +146,6 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { ForgeManager.itemWorkOrderLookup.remove(virtualItem); DbManager.removeFromCache(virtualItem); - // WorkOrder exists until all items are completed or junked - // this is to hold a reference to the virtual item for serialization (NPCMsgHandler) - - workOrder.slots_used = workOrder.slots_used - 1; - - if (workOrder.slots_used == 0) - ForgeManager.vendorWorkOrderLookup.get(workOrder.vendor).remove(workOrder); - // Persist item and add to vendor inventory Item completedItem = DbManager.ItemQueries.PERSIST(virtualItem); @@ -400,9 +392,6 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { workOrder.slots_used = workOrder.slots_used - 1; - if (workOrder.slots_used == 0) - ForgeManager.vendorWorkOrderLookup.get(workOrder.vendor).remove(workOrder); - // Refresh vendor's inventory to client outMsg = new ManageNPCMsg(vendor);