From deb5b36309e354318e26b822cb3c50b2cc702399 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 8 Apr 2024 17:02:20 -0400 Subject: [PATCH] Minor class cleanup --- src/engine/gameManager/ForgeManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 + ")");