Minor class cleanup

This commit is contained in:
2024-04-08 16:42:44 -04:00
parent 533ed87321
commit bfa43823f6
2 changed files with 22 additions and 1 deletions
+3 -1
View File
@@ -58,7 +58,7 @@ public enum ForgeManager implements Runnable {
// Resubmit workOrder
workOrder.completionTime = System.currentTimeMillis() + workOrder.rollingDuration;
workOrder.total_to_produce = workOrder.total_to_produce - 1;
workOrder.total_produced = workOrder.total_produced - 1;
workOrders.add(workOrder);
Logger.info("Workorder has cycled: " + workOrder.workOrderID);
@@ -86,6 +86,8 @@ public enum ForgeManager implements Runnable {
if (workOrder.slotCount > 1 && workOrder.total_to_produce == 0)
workOrder.slotCount = 1;
Logger.info(workOrder.toString());
workOrder.vendor.workOrders.add(workOrder);
workOrders.add(workOrder);
}