SteamWar/SpigotCore
Archiviert
13
0

Reimplementation of dynamic SchematicType instanciation #44

Zusammengeführt
Lixfel hat 4 Commits von dynamic_instanciation nach master 2020-01-28 06:29:12 +01:00 zusammengeführt
Nur Änderungen aus Commit ef01e8f685 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -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);
}