From ef01e8f68550d23d3cbc401d9c7b56ac5746a2d6 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 25 Jan 2020 14:04:07 +0100 Subject: [PATCH] Fixing checktype classification --- SpigotCore_Main/src/de/steamwar/sql/SchematicType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java b/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java index 9d3cadd..b51dc38 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java @@ -31,7 +31,7 @@ public class SchematicType { ConfigurationSection section = config.getConfigurationSection(type); assert section != null; String checktype = section.getString("checktype"); - SchematicType current = new SchematicType(type, section.getString("kuerzel"), Type.valueOf(section.getString("type")), checktype != null ? tmpFromDB.get(checktype) : null); + SchematicType current = new SchematicType(type, section.getString("kuerzel"), Type.valueOf(section.getString("type")), checktype != null ? tmpFromDB.get(checktype.toLowerCase()) : null); tmpTypes.add(current); tmpFromDB.put(type.toLowerCase(), current); }