From 35fab889490ea053ebfec1069a66d30817927d3a Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 8 Apr 2024 17:15:56 -0400 Subject: [PATCH] Minor class cleanup --- src/engine/gameManager/ForgeManager.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 7726feb5..9cd6b8d4 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -35,6 +35,12 @@ public enum ForgeManager implements Runnable { WorkOrder workOrder = workOrders.take(); + // Completed or canceled work orders are not re-enqueued + + if (workOrder.runCanceled || workOrder.runCompleted) + continue; + ; + // Fulfill workOrder for (int i = 0; i < workOrder.slotCount; ++i) {