9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-29 03:59:06 +00:00

remove item type caching for schemas

This commit is contained in:
Julian Krings
2024-12-24 10:09:22 +01:00
parent c1f797e7c9
commit 090ff730a7

View File

@@ -46,7 +46,6 @@ public class SchemaBuilder {
private static final String SYMBOL_TYPE__N = "";
private static final JSONArray POTION_TYPES = getPotionTypes();
private static final JSONArray ENCHANT_TYPES = getEnchantTypes();
private static final JSONArray ITEM_TYPES = new JSONArray(B.getItemTypes());
private static final JSONArray FONT_TYPES = new JSONArray(GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames());
private final KMap<String, JSONObject> definitions;
private final Class<?> root;
@@ -264,7 +263,7 @@ public class SchemaBuilder {
if (!definitions.containsKey(key)) {
JSONObject j = new JSONObject();
j.put("enum", ITEM_TYPES);
j.put("enum", B.getItemTypes());
definitions.put(key, j);
}
@@ -441,7 +440,7 @@ public class SchemaBuilder {
if (!definitions.containsKey(key)) {
JSONObject j = new JSONObject();
j.put("enum", ITEM_TYPES);
j.put("enum", B.getItemTypes());
definitions.put(key, j);
}