diff --git a/src/engine/db/handlers/dbWarehouseHandler.java b/src/engine/db/handlers/dbWarehouseHandler.java index 32b25399..c58cb10e 100644 --- a/src/engine/db/handlers/dbWarehouseHandler.java +++ b/src/engine/db/handlers/dbWarehouseHandler.java @@ -213,6 +213,11 @@ public class dbWarehouseHandler extends dbHandlerBase { workOrder.workOrderID = ForgeManager.wordOrderCounter.incrementAndGet(); ForgeManager.vendorWorkOrderLookup.get(workOrder.vendor).add(workOrder); + // If workorder is not yet complete process it + + if (workOrder.runCompleted == false) + ForgeManager.forge.add(workOrder); + } } } diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 6f17cfab..5221498c 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -27,7 +27,7 @@ public enum ForgeManager implements Runnable { FORGE_MANAGER; - private static final BlockingQueue forge = new DelayQueue<>(); + public static final BlockingQueue forge = new DelayQueue<>(); public static final AtomicInteger wordOrderCounter = new AtomicInteger(0); public static final ConcurrentHashMap> vendorWorkOrderLookup = new ConcurrentHashMap<>(); public static final ConcurrentHashMap itemWorkOrderLookup = new ConcurrentHashMap<>();