|
|
@ -62,6 +62,7 @@ public enum ForgeManager implements Runnable { |
|
|
|
// Complete this workOrder.
|
|
|
|
// Complete this workOrder.
|
|
|
|
|
|
|
|
|
|
|
|
for (Item workOrderItem : workOrder.cooking) { |
|
|
|
for (Item workOrderItem : workOrder.cooking) { |
|
|
|
|
|
|
|
workOrderItem.flags.add(mbEnums.ItemFlags.Identified); |
|
|
|
ItemProductionMsg outMsg = new ItemProductionMsg(workOrder.vendor.building, workOrder.vendor, workOrderItem, mbEnums.ProductionActionType.CONFIRM_PRODUCE, true); |
|
|
|
ItemProductionMsg outMsg = new ItemProductionMsg(workOrder.vendor.building, workOrder.vendor, workOrderItem, mbEnums.ProductionActionType.CONFIRM_PRODUCE, true); |
|
|
|
DispatchMessage.dispatchMsgToInterestArea(workOrder.vendor, outMsg, mbEnums.DispatchChannel.SECONDARY, 700, false, false); |
|
|
|
DispatchMessage.dispatchMsgToInterestArea(workOrder.vendor, outMsg, mbEnums.DispatchChannel.SECONDARY, 700, false, false); |
|
|
|
} |
|
|
|
} |
|
|
@ -298,6 +299,10 @@ public enum ForgeManager implements Runnable { |
|
|
|
|
|
|
|
|
|
|
|
for (Item workOrderItem : workOrder.cooking) { |
|
|
|
for (Item workOrderItem : workOrder.cooking) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Identify completed items
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
workOrderItem.flags.add(mbEnums.ItemFlags.Identified); |
|
|
|
|
|
|
|
|
|
|
|
// Persist item
|
|
|
|
// Persist item
|
|
|
|
|
|
|
|
|
|
|
|
Item completedItem = DbManager.ItemQueries.PERSIST(workOrderItem); |
|
|
|
Item completedItem = DbManager.ItemQueries.PERSIST(workOrderItem); |
|
|
|