From 139998eaa15b6edb75ae75119469379b24ce2b30 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 14 Apr 2024 15:02:52 -0400 Subject: [PATCH] Moved declaration outside of loop --- src/engine/gameManager/ForgeManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 93fc2b19..b500535e 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -39,9 +39,9 @@ public enum ForgeManager implements Runnable { public void run() { - while (true) { + WorkOrder workOrder = null; - WorkOrder workOrder = null; + while (true) { try { workOrder = forge.take();