From b2112f2b01866a0dd00fdc3c113bb92b296d7738 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 19 Feb 2024 03:06:38 -0500 Subject: [PATCH] Type selection work. --- src/engine/objects/ItemTemplate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index d7534e92..c9fcd5c7 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -107,7 +107,7 @@ public class ItemTemplate { Object skills_used = jsonObject.get("item_skill_used"); - if ((int) skills_used != 0) + if (skills_used.equals(0) == false) for (Object o : (JSONArray) skills_used) { String skilString = ((String) o).replaceAll("\\s", ""); Enum.CharacterSkills characterSkill = Enum.CharacterSkills.valueOf(skilString);