Browse Source

Parsing classes

combat-2
MagicBot 9 months ago
parent
commit
7632dc783a
  1. 2
      src/engine/objects/ItemTemplate.java

2
src/engine/objects/ItemTemplate.java

@ -192,7 +192,7 @@ public class ItemTemplate { @@ -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(",", "");

Loading…
Cancel
Save