Browse Source

More work on new manager.

feature-workorder
MagicBot 1 year ago
parent
commit
2d4a604709
  1. 10
      src/engine/gameManager/ForgeManager.java

10
src/engine/gameManager/ForgeManager.java

@ -28,9 +28,15 @@ public enum ForgeManager implements Runnable { @@ -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) {

Loading…
Cancel
Save