From bcf4aef5a0b11e88fe82891b5501db89a46be136 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 27 Feb 2024 14:42:35 -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 d38cf34c..5080cf0e 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -209,7 +209,7 @@ public class ItemTemplate { item_weapon_damage.put(sourceType, minMax); } - JSONArray attack_anim_right = (JSONArray) jsonObject.get("weapon_attack_anim_right"); + JSONArray attack_anim_right = (JSONArray) item_weapon.get("weapon_attack_anim_right"); if (attack_anim_right.isEmpty() == false) for (Object o : weapon_damage) { @@ -219,7 +219,7 @@ public class ItemTemplate { weapon_attack_anim_right.add(new int[]{animation, duration}); } - JSONArray attack_anim_left = (JSONArray) jsonObject.get("attack_anim_left"); + JSONArray attack_anim_left = (JSONArray) item_weapon.get("attack_anim_left"); if (attack_anim_left.isEmpty() == false) for (Object o : weapon_damage) {