From 09c96c772e543c5e8d5acc79e0c57d31584267a9 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 13 Apr 2024 09:10:56 -0400 Subject: [PATCH] Multiple item workOrder work --- 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 5e2b2b0b..80e37890 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -100,9 +100,9 @@ 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)); - // Single item rolls are total_to_produce of 0; + // Single item rolls are msg_size of 0; - if (workOrder.slots_used > 0 && workOrder.total_to_produce == 0) + if (workOrder.slots_used > 0 && workOrder.msg_size == 0) workOrder.slots_used = 1; // Create in-memory items and add to collections