From 7632dc783a36d5ad0dd0840294b518fbb645c6fa Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 24 Feb 2024 14:24:51 -0500 Subject: [PATCH] Parsing classes --- 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 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(",", "");