forked from MagicBane/Server
reformat class
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user