From f1a8f6024d92f597dbf5e7abdd9ab398abaf4c20 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 27 Feb 2024 15:42:12 -0500 Subject: [PATCH] Bugfix array index --- src/engine/objects/ItemTemplate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 5a2ede0a..9e68edae 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -341,7 +341,7 @@ public class ItemTemplate { JSONObject powerActionEntry = (JSONObject) o; String power = (String) powerActionEntry.get("power_type"); JSONArray power_actions = (JSONArray) powerActionEntry.get("power_actions"); - JSONArray power_args = (JSONArray) power_actions.get(9); + JSONArray power_args = (JSONArray) power_actions.get(0); int[] power_arguments = {((Long) power_args.get(0)).intValue(), ((Long) power_args.get(1)).intValue()}; item_power_action.put(power, power_arguments); }