|
|
@ -119,14 +119,10 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler { |
|
|
|
ItemProductionMsg outMsg1 = new ItemProductionMsg(vendor.building, vendor, virtualItem, mbEnums.ProductionActionType.CONFIRM_DEPOSIT, true); |
|
|
|
ItemProductionMsg outMsg1 = new ItemProductionMsg(vendor.building, vendor, virtualItem, mbEnums.ProductionActionType.CONFIRM_DEPOSIT, true); |
|
|
|
DispatchMessage.dispatchMsgToInterestArea(vendor, outMsg1, mbEnums.DispatchChannel.SECONDARY, 700, false, false); |
|
|
|
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.vendorItemLookup.get(vendor).remove(virtualItem); |
|
|
|
ForgeManager.itemWorkOrderLookup.remove(virtualItem); |
|
|
|
ForgeManager.itemWorkOrderLookup.remove(virtualItem); |
|
|
|
break; |
|
|
|
break; |
|
|
|