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;