diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index daa1ad95..5453a1d0 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -192,7 +192,7 @@ public class ItemTemplate { restrict = ((Boolean) class_required.get("restrict")); JSONArray classes = (JSONArray) class_required.get("classes"); - for (Object o : races) { + for (Object o : classes) { String classEntry = (String) o; classEntry = classEntry.replaceAll("\\s", ""); classEntry = classEntry.replaceAll(",", "");