From 1e003c28abc74c528e8c3a6d04a86702db932ee7 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 17 Apr 2024 12:20:45 -0400 Subject: [PATCH] Completion work --- .../net/client/handlers/ItemProductionMsgHandler.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/engine/net/client/handlers/ItemProductionMsgHandler.java b/src/engine/net/client/handlers/ItemProductionMsgHandler.java index 6f62d093..27a87c3b 100644 --- a/src/engine/net/client/handlers/ItemProductionMsgHandler.java +++ b/src/engine/net/client/handlers/ItemProductionMsgHandler.java @@ -119,14 +119,10 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { ItemProductionMsg outMsg1 = new ItemProductionMsg(vendor.building, vendor, virtualItem, mbEnums.ProductionActionType.CONFIRM_DEPOSIT, true); DispatchMessage.dispatchMsgToInterestArea(vendor, outMsg1, mbEnums.DispatchChannel.SECONDARY, 700, false, false); - // Completed items are identified + // Add to NPC inventory - virtualItem.flags.add(mbEnums.ItemFlags.Identified); + vendor.charItemManager.addItemToInventory(virtualItem); - Item completedItem = DbManager.ItemQueries.PERSIST(virtualItem); - vendor.charItemManager.addItemToInventory(completedItem); - - ForgeManager.inMemoryItemLookup.remove(virtualItem.objectUUID); ForgeManager.vendorItemLookup.get(vendor).remove(virtualItem); ForgeManager.itemWorkOrderLookup.remove(virtualItem); break;