More parsing work

This commit is contained in:
2024-02-27 14:50:38 -05:00
parent 91247c58a6
commit 0a39102b08
+2 -2
View File
@@ -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);