diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 32b9bbef..ca677b6d 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -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 { // 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 + ")");