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;