City check moved outside of validation

This commit is contained in:
2024-04-21 14:08:27 -04:00
parent 979cd70d65
commit 7f8c297ae2
2 changed files with 6 additions and 3 deletions
-3
View File
@@ -238,9 +238,6 @@ public enum ItemManager {
if (workOrder.vendor.getBuilding() == null)
return 58; //58: The formula is beyond the means of this facility
if (workOrder.vendor.getBuilding().getCity() == null)
return 58; //58: The formula is beyond the means of this facility
if (!workOrder.vendor.charItemManager.hasRoomInventory(template.item_wt))
return 30; //30: That person cannot carry that item