From 03fb180f023fbd08ce818517ab379fa690c827db Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 15 Apr 2024 12:49:37 -0400 Subject: [PATCH] Set variable on submit --- src/engine/gameManager/ForgeManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 2fb06bb1..d70b4ab8 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -122,6 +122,7 @@ public enum ForgeManager implements Runnable { workOrder.production_cost_total.putAll(workOrder.production_cost); workOrder.production_cost_total.forEach((key, value) -> workOrder.production_cost_total.compute(key, (k, v) -> v * workOrder.total_to_produce)); + workOrder.total_produced = 0; workOrder.total_to_produce *= workOrder.slots_used; // Create in-memory items and add to collections