From 3accd779b9e26575b459b69b19d86bfe1da569ea Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 12 Jun 2024 14:06:18 -0400 Subject: [PATCH] Sanity check for deleted vendors --- src/engine/gameManager/ForgeManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 6939ad4d..be62558c 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -67,7 +67,7 @@ public enum ForgeManager implements Runnable { // Early exit for completed workOrders loaded from disk // or vendors who were re-deeded with items still cooking. - if (workOrder.vendor == null && workOrder.runCompleted.get()) + if (workOrder.vendor == null || workOrder.runCompleted.get()) continue; // This workOrder has completed production.