From d3b1cf9928cee313c507d724d64a42f3a52500eb Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 21 Apr 2024 14:10:35 -0400 Subject: [PATCH] Comment update --- src/engine/gameManager/ForgeManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index b79264d3..80ad2da3 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -49,6 +49,11 @@ public enum ForgeManager implements Runnable { Logger.error(e); } + // Do not process null workOrders + + if (workOrder == null) + continue; + if (workOrder.total_produced >= workOrder.total_to_produce) { // Complete this workOrder.