|
|
|
@ -48,18 +48,17 @@ public enum ForgeManager implements Runnable {
@@ -48,18 +48,17 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
|
|
|
|
|
if (workOrder.total_produced >= workOrder.total_to_produce) { |
|
|
|
|
|
|
|
|
|
Logger.info("Workorder has completed: " + workOrder.workOrderID); |
|
|
|
|
|
|
|
|
|
workOrder.runCompleted = true; |
|
|
|
|
workOrder.vendor.workOrders.remove(workOrder); |
|
|
|
|
|
|
|
|
|
Logger.info("Workorder has completed: " + workOrder.workOrderID); |
|
|
|
|
workOrder.vendor.workOrders.remove(workOrder); |
|
|
|
|
|
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Resubmit workOrder
|
|
|
|
|
|
|
|
|
|
workOrder.rollingDuration = System.currentTimeMillis() + 10000; |
|
|
|
|
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; |
|
|
|
|
workOrder.total_to_produce = workOrder.total_to_produce - 1; |
|
|
|
|
workOrders.add(workOrder); |
|
|
|
|
|
|
|
|
|