From 6b0b0cc357a0702f38b3d7c8ab84d318d21796ec Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 11 May 2024 08:07:04 -0400 Subject: [PATCH] Workorder set to completed when redeeding. --- src/engine/gameManager/BuildingManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/BuildingManager.java b/src/engine/gameManager/BuildingManager.java index e38adabb..2b27372b 100644 --- a/src/engine/gameManager/BuildingManager.java +++ b/src/engine/gameManager/BuildingManager.java @@ -331,9 +331,10 @@ public enum BuildingManager { // Clear all workorders for this hireling if (hireling.getObjectType().equals(GameObjectType.NPC)) if (ForgeManager.vendorWorkOrderLookup.contains(hireling)) - for (WorkOrder workOrder : ForgeManager.vendorWorkOrderLookup.get(hireling)) + for (WorkOrder workOrder : ForgeManager.vendorWorkOrderLookup.get(hireling)) { + workOrder.runCompleted = true; DbManager.WarehouseQueries.DELETE_WORKORDER(workOrder); - + } // Remove hireling from building building.getHirelings().remove(hireling);