|
|
@ -35,6 +35,12 @@ public enum ForgeManager implements Runnable { |
|
|
|
|
|
|
|
|
|
|
|
WorkOrder workOrder = workOrders.take(); |
|
|
|
WorkOrder workOrder = workOrders.take(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Completed or canceled work orders are not re-enqueued
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (workOrder.runCanceled || workOrder.runCompleted) |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
// Fulfill workOrder
|
|
|
|
// Fulfill workOrder
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < workOrder.slotCount; ++i) { |
|
|
|
for (int i = 0; i < workOrder.slotCount; ++i) { |
|
|
|