diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 339cfb5b..f25417f9 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -51,8 +51,8 @@ public class ItemTemplate { public EnumSet item_use_flags = EnumSet.noneOf(Enum.ItemUseFlags.class); public int item_initial_charges; public HashMap item_skill_required = new HashMap<>(); - public EnumSet item_race_req = EnumSet.noneOf(Enum.RaceType.class); - public EnumSet item_race_res = EnumSet.noneOf(Enum.RaceType.class); + public EnumSet item_race_req = EnumSet.noneOf(Enum.MonsterType.class); + public EnumSet item_race_res = EnumSet.noneOf(Enum.MonsterType.class); public ItemTemplate(JSONObject jsonObject) { @@ -181,9 +181,9 @@ public class ItemTemplate { race = race.replaceAll(",", ""); if (restrict) - item_race_res.add(Enum.RaceType.valueOf(race)); + item_race_res.add(Enum.MonsterType.valueOf(race)); else - item_race_req.add(Enum.RaceType.valueOf(race)); + item_race_req.add(Enum.MonsterType.valueOf(race)); } } catch (Exception e) {