Browse Source

reformat class

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

Loading…
Cancel
Save