|
|
|
@ -43,13 +43,12 @@ public enum ForgeManager implements Runnable {
@@ -43,13 +43,12 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
// otherwise roll what was asked for
|
|
|
|
|
|
|
|
|
|
workOrder.total_to_produce = workOrder.total_to_produce - 1; |
|
|
|
|
Logger.info("Workorder popped: " + workOrder.workOrderID); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (workOrder.total_to_produce == 0) { |
|
|
|
|
|
|
|
|
|
workOrder.runCompleted = true; |
|
|
|
|
|
|
|
|
|
Logger.info("Workorder has completed: " + workOrder.workOrderID); |
|
|
|
|
// Remove this workOrder from any slots on vendor
|
|
|
|
|
|
|
|
|
|
continue; |
|
|
|
@ -58,7 +57,7 @@ public enum ForgeManager implements Runnable {
@@ -58,7 +57,7 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
// Resubmit workOrder
|
|
|
|
|
|
|
|
|
|
workOrder.completionTime = System.currentTimeMillis() + 10000; |
|
|
|
|
|
|
|
|
|
Logger.info("Workorder has cycled: " + workOrder.workOrderID); |
|
|
|
|
} catch (InterruptedException e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
} |
|
|
|
|