From fae81a0263ef0b2aed13c1bbd877e4539cea29fc Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 14 Apr 2024 13:58:25 -0400 Subject: [PATCH] Removed cast in validation --- src/engine/gameManager/ForgeManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/gameManager/ForgeManager.java b/src/engine/gameManager/ForgeManager.java index 9c57db89..537806ab 100644 --- a/src/engine/gameManager/ForgeManager.java +++ b/src/engine/gameManager/ForgeManager.java @@ -138,10 +138,9 @@ public enum ForgeManager implements Runnable { if (!workOrder.vendor.charItemManager.hasRoomInventory(template.item_wt)) return 30; //30: That person cannot carry that item - if (!workOrder.vendor.getItemModTable().contains(((byte) template.modTable))) + if (!workOrder.vendor.getItemModTable().contains((template.modTable))) return 59; //59: This hireling does not have this formula - if (!calcCostOverrun(workOrder).isEmpty()) return 10; //18: You can't really afford that