From 2d4a6047095950bfd156dfdeec27dbc4847b9286 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 13 Sep 2023 12:52:55 -0400 Subject: [PATCH] More work on new manager. --- src/engine/gameManager/ForgeManager.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index cdf3a148..bc70aacd 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -28,9 +28,15 @@ public enum ForgeManager implements Runnable { WorkOrder workOrder = workQueue.take(); - workOrder.itemCount = workOrder.itemCount - 1; + // Fulfill workOrder - // Create workOrder item + for (int i = 0; i < workOrder.slotCount; ++i) { + + // Create workOrder item + + workOrder.itemCount = workOrder.itemCount - 1; + + } if (workOrder.itemCount == 0) {