From 3bd50a1ad1685df7ef594d72ca67f12ab1d60506 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 18 Feb 2024 14:58:50 -0500 Subject: [PATCH] More constructor work. --- src/engine/objects/ItemTemplate.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index d8ac7d10..9c3064f1 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -105,10 +105,9 @@ public class ItemTemplate { item_render_object_female = ((Long) jsonObject.get("item_render_object_female")).intValue(); item_health_full = ((Double) jsonObject.get("item_health_full")).floatValue(); - JSONArray skills_used = (JSONArray) jsonObject.get("item_skill_used"); + Object skills_used = jsonObject.get("item_skill_used"); if (skills_used != null) - for (Object o : skills_used) - item_skill_used.add(Enum.CharacterSkills.valueOf((String) o)); + item_skill_used.add(Enum.CharacterSkills.Axe); } }