From 1be657d3ef0b194ce03b7a91485a21ad7d696fd5 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 15 Apr 2024 11:07:26 -0400 Subject: [PATCH] Persist item work --- src/engine/gameManager/ForgeManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index f97450bb..a4a9048a 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -59,11 +59,11 @@ public enum ForgeManager implements Runnable { Logger.info("item forged:" + workOrder.workOrderID + " (" + workOrder.total_produced + "/" + workOrder.total_to_produce + ")"); - // Complete this workOrder. Persist items currently in memory - // and set the items as completed. - if (workOrder.total_produced >= workOrder.total_to_produce) { + // Complete this workOrder. Persist items currently in memory + // and set the items as completed. + for (Item workOrderItem : workOrder.cooking) { workOrderItem.setDateToUpgrade(0);