|
|
|
@ -49,6 +49,8 @@ public enum ForgeManager implements Runnable {
@@ -49,6 +49,8 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
if (workOrder.total_to_produce == 0) { |
|
|
|
|
|
|
|
|
|
workOrder.runCompleted = true; |
|
|
|
|
workOrder.vendor.workOrders.remove(workOrder); |
|
|
|
|
|
|
|
|
|
Logger.info("Workorder has completed: " + workOrder.workOrderID); |
|
|
|
|
// Remove this workOrder from any slots on vendor
|
|
|
|
|
|
|
|
|
@ -85,6 +87,7 @@ public enum ForgeManager implements Runnable {
@@ -85,6 +87,7 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
|
|
|
|
|
workOrder.total_to_produce = Math.max(1, workOrder.total_to_produce); |
|
|
|
|
|
|
|
|
|
workOrder.vendor.workOrders.add(workOrder); |
|
|
|
|
workOrders.add(workOrder); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|