Browse Source

Bugfix in pre/suf parsing

combat-2
MagicBot 7 months ago
parent
commit
de65f6bcef
  1. 4
      src/engine/loot/WorkOrder.java

4
src/engine/loot/WorkOrder.java

@ -87,8 +87,8 @@ public class WorkOrder implements Delayed { @@ -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;

Loading…
Cancel
Save