diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index f8835bc0..f29257ef 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -224,8 +224,8 @@ public class ItemTemplate { if (attack_anim_left.isEmpty() == false) for (Object o : attack_anim_left) { JSONArray animationEntry = (JSONArray) o; - int animation = (int) animationEntry.get(0); - int duration = (int) animationEntry.get(1); + int animation = ((Long) animationEntry.get(0)).intValue(); + int duration = ((Long) animationEntry.get(1)).intValue(); weapon_attack_anim_left.add(new int[]{animation, duration}); }