reformat class

This commit is contained in:
2024-04-14 14:11:22 -04:00
parent 2c89509fa2
commit 94ab64d629
+5 -4
View File
@@ -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 {
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 {
continue;
}
// enQueue this workOrder again; back into the oven
// until all items for this workOrder are completed.