Browse Source

Completion work

combat-2
MagicBot 7 months ago
parent
commit
1e003c28ab
  1. 8
      src/engine/net/client/handlers/ItemProductionMsgHandler.java

8
src/engine/net/client/handlers/ItemProductionMsgHandler.java

@ -119,14 +119,10 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { @@ -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;

Loading…
Cancel
Save