Browse Source

More parsing work

combat-2
MagicBot 9 months ago
parent
commit
ab32ad1538
  1. 4
      src/engine/objects/ItemTemplate.java

4
src/engine/objects/ItemTemplate.java

@ -214,8 +214,8 @@ public class ItemTemplate {
if (attack_anim_right.isEmpty() == false) if (attack_anim_right.isEmpty() == false)
for (Object o : attack_anim_right) { for (Object o : attack_anim_right) {
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_right.add(new int[]{animation, duration}); weapon_attack_anim_right.add(new int[]{animation, duration});
} }

Loading…
Cancel
Save