Browse Source

reformat class

combat-2
MagicBot 7 months ago
parent
commit
94ab64d629
  1. 9
      src/engine/gameManager/ForgeManager.java

9
src/engine/gameManager/ForgeManager.java

@ -45,10 +45,11 @@ public enum ForgeManager implements Runnable { @@ -45,10 +45,11 @@ public enum ForgeManager implements Runnable {
Logger.error(e);
}
if (workOrder == null) {
Logger.error("NULL workOrder in queue");
// Null workOrders should not exist.
// Perhaps log?
if (workOrder == null)
continue;
}
// Completed or canceled work orders are not re-enqueued
@ -56,6 +57,7 @@ public enum ForgeManager implements Runnable { @@ -56,6 +57,7 @@ public enum ForgeManager implements Runnable {
continue;
// Create in memory items to add to collections
forgeItems(workOrder);
Logger.info("item forged:" + workOrder.workOrderID + " (" + workOrder.total_produced + "/" + workOrder.total_to_produce + ")");
@ -76,7 +78,6 @@ public enum ForgeManager implements Runnable { @@ -76,7 +78,6 @@ public enum ForgeManager implements Runnable {
continue;
}
// enQueue this workOrder again; back into the oven
// until all items for this workOrder are completed.

Loading…
Cancel
Save