|
|
|
@ -46,6 +46,8 @@ public enum ForgeManager implements Runnable {
@@ -46,6 +46,8 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
// otherwise roll what was asked for
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
workOrder.total_produced = workOrder.total_produced + 1; |
|
|
|
|
|
|
|
|
|
if (workOrder.total_produced >= workOrder.total_to_produce) { |
|
|
|
|
|
|
|
|
|
Logger.info("Workorder has completed: " + workOrder.workOrderID); |
|
|
|
@ -58,7 +60,6 @@ public enum ForgeManager implements Runnable {
@@ -58,7 +60,6 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
// Resubmit workOrder
|
|
|
|
|
|
|
|
|
|
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration; |
|
|
|
|
workOrder.total_produced = workOrder.total_produced + 1; |
|
|
|
|
workOrders.add(workOrder); |
|
|
|
|
|
|
|
|
|
Logger.info("workOrder cycled:" + workOrder.workOrderID + " (" + workOrder.total_produced + "/" + workOrder.total_to_produce + ")"); |
|
|
|
|