Track items and their workorders.

This commit is contained in:
2024-04-08 04:37:27 -04:00
parent 74a7a255be
commit 652476fde8
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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 {
workOrder.total_to_produce = Math.max(1, workOrder.total_to_produce);
workOrder.vendor.workOrders.add(workOrder);
workOrders.add(workOrder);
}