More parsing work

This commit is contained in:
2024-02-27 14:53:06 -05:00
parent ab32ad1538
commit 093fe0f261
+2 -2
View File
@@ -224,8 +224,8 @@ public class ItemTemplate {
if (attack_anim_left.isEmpty() == false) if (attack_anim_left.isEmpty() == false)
for (Object o : attack_anim_left) { for (Object o : attack_anim_left) {
JSONArray animationEntry = (JSONArray) o; JSONArray animationEntry = (JSONArray) o;
int animation = (int) animationEntry.get(0); int animation = ((Long) animationEntry.get(0)).intValue();
int duration = (int) animationEntry.get(1); int duration = ((Long) animationEntry.get(1)).intValue();
weapon_attack_anim_left.add(new int[]{animation, duration}); weapon_attack_anim_left.add(new int[]{animation, duration});
} }