From 5d0f79892c542d1fde0cbb2ca213b61be71ea105 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 24 Feb 2024 14:29:39 -0500 Subject: [PATCH] Parsing discs --- src/engine/objects/ItemTemplate.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 87c8e85b..fd89b11c 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -56,8 +56,8 @@ public class ItemTemplate { public EnumSet item_class_req = EnumSet.noneOf(Enum.ClassType.class); public EnumSet item_class_res = EnumSet.noneOf(Enum.ClassType.class); - public EnumSet item_disc_req = EnumSet.noneOf(Enum.ClassType.class); - public EnumSet item_disc_res = EnumSet.noneOf(Enum.ClassType.class); + public EnumSet item_disc_req = EnumSet.noneOf(Enum.DisciplineType.class); + public EnumSet item_disc_res = EnumSet.noneOf(Enum.DisciplineType.class); public ItemTemplate(JSONObject jsonObject) { @@ -215,9 +215,9 @@ public class ItemTemplate { disc = disc.replaceAll(",", ""); if (restrict) - item_disc_res.add(Enum.ClassType.valueOf(disc)); + item_disc_res.add(Enum.DisciplineType.valueOf(disc)); else - item_disc_req.add(Enum.ClassType.valueOf(disc)); + item_disc_req.add(Enum.DisciplineType.valueOf(disc)); } } catch (Exception e) {