From 3db8ee7afd1327019a46868149535057a6c891d5 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 22 Jul 2024 16:37:27 -0400 Subject: [PATCH] Forge validation for modtables updated. --- src/engine/loot/WorkOrder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/loot/WorkOrder.java b/src/engine/loot/WorkOrder.java index c5b921ab..5a349175 100644 --- a/src/engine/loot/WorkOrder.java +++ b/src/engine/loot/WorkOrder.java @@ -135,7 +135,8 @@ public class WorkOrder implements Delayed { if (!workOrder.vendor.charItemManager.hasRoomInventory(template.item_wt)) return 30; //30: That person cannot carry that item - if (!workOrder.vendor.getItemModTable().contains((template.modTable))) + if ((workOrder.prefixToken != 0 || workOrder.suffixToken != 0) && + !workOrder.vendor.getItemModTable().contains((template.modTable))) return 59; //59: This hireling does not have this formula if (!Warehouse.calcCostOverrun(workOrder).isEmpty())