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); } }