From ab32ad15380a9c77bcb5ff97c458b34924539cb6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 27 Feb 2024 14:52:07 -0500 Subject: [PATCH] More parsing work --- src/engine/objects/ItemTemplate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 595e18ad..f8835bc0 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -214,8 +214,8 @@ public class ItemTemplate { if (attack_anim_right.isEmpty() == false) for (Object o : attack_anim_right) { 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_right.add(new int[]{animation, duration}); }