More workorder logic work

This commit is contained in:
2024-04-07 23:00:37 -04:00
parent 92402097d4
commit 75d520831f
+3 -2
View File
@@ -41,8 +41,6 @@ public enum ForgeManager implements Runnable {
// if Prefix and suffix are null random roll item
// otherwise roll what was asked for
workOrder.total_to_produce = workOrder.total_to_produce - 1;
}
if (workOrder.total_to_produce == 0) {
@@ -57,6 +55,9 @@ public enum ForgeManager implements Runnable {
// Resubmit workOrder
workOrder.completionTime = System.currentTimeMillis() + 10000;
workOrder.total_to_produce = workOrder.total_to_produce - 1;
workOrders.add(workOrder);
Logger.info("Workorder has cycled: " + workOrder.workOrderID);
} catch (InterruptedException e) {
e.printStackTrace();