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) {