From de65f6bcefebfbab43b948fbb291c2b664cc09d6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 22 Apr 2024 16:28:02 -0400 Subject: [PATCH] Bugfix in pre/suf parsing --- src/engine/loot/WorkOrder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/loot/WorkOrder.java b/src/engine/loot/WorkOrder.java index 60a62453..b10addfb 100644 --- a/src/engine/loot/WorkOrder.java +++ b/src/engine/loot/WorkOrder.java @@ -87,8 +87,8 @@ public class WorkOrder implements Delayed { JSONArray tokenList = jsonWorkOrder.getJSONArray("cookingTokens"); for (Object o : tokenList) { - int prefix = tokenList.getInt(0); - int suffix = tokenList.getInt(1); + int prefix = ((JSONArray) o).getInt(0); + int suffix = ((JSONArray) o).getInt(1); Item cookingItem = ForgeManager.forgeItem(this); cookingItem.prefixToken = prefix; cookingItem.suffixToken = suffix;