From 0a39102b08361634511101a10a83de0bc4c1b488 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 27 Feb 2024 14:50:38 -0500 Subject: [PATCH] More parsing work --- src/engine/objects/ItemTemplate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 6db1b2a5..595e18ad 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -212,7 +212,7 @@ public class ItemTemplate { JSONArray attack_anim_right = (JSONArray) item_weapon.get("weapon_attack_anim_right"); if (attack_anim_right.isEmpty() == false) - for (Object o : weapon_damage) { + for (Object o : attack_anim_right) { JSONArray animationEntry = (JSONArray) o; int animation = (int) animationEntry.get(0); int duration = (int) animationEntry.get(1); @@ -222,7 +222,7 @@ public class ItemTemplate { JSONArray attack_anim_left = (JSONArray) item_weapon.get("weapon_attack_anim_left"); if (attack_anim_left.isEmpty() == false) - for (Object o : weapon_damage) { + for (Object o : attack_anim_left) { JSONArray animationEntry = (JSONArray) o; int animation = (int) animationEntry.get(0); int duration = (int) animationEntry.get(1);