From 75d520831f95c19e161cb74ed2f4a10aa52eed27 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 7 Apr 2024 23:00:37 -0400 Subject: [PATCH] More workorder logic work --- src/engine/gameManager/ForgeManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index fa3dc66f..545e4060 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -41,8 +41,6 @@ public enum ForgeManager implements Runnable { // if Prefix and suffix are null random roll item // otherwise roll what was asked for - - workOrder.total_to_produce = workOrder.total_to_produce - 1; } if (workOrder.total_to_produce == 0) { @@ -57,6 +55,9 @@ public enum ForgeManager implements Runnable { // Resubmit workOrder workOrder.completionTime = System.currentTimeMillis() + 10000; + workOrder.total_to_produce = workOrder.total_to_produce - 1; + workOrders.add(workOrder); + Logger.info("Workorder has cycled: " + workOrder.workOrderID); } catch (InterruptedException e) { e.printStackTrace();