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); 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.