Workorder set to completed when redeeding.
This commit is contained in:
1 parent
bc1ae9a2c9
commit
6b0b0cc357
1 file changed
+3
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user