SteamWar/SpigotCore
Archiviert
13
0

Fix SchematicType
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2021-12-19 17:54:44 +01:00
Ursprung de126919b1
Commit af956db60b

Datei anzeigen

@ -56,8 +56,7 @@ public class SchematicType {
continue; continue;
SchematicType checktype = null; SchematicType checktype = null;
String materialString = config.getString("Schematic.Material"); Material material = SWItem.getMaterial(config.getString("Schematic.Material", "STONE_BUTTON"));
Material material = materialString != null ? SWItem.getMaterial(materialString) : SWItem.getMaterial("STONE_BUTTON");
if(!config.getStringList("CheckQuestions").isEmpty()) { if(!config.getStringList("CheckQuestions").isEmpty()) {
checktype = new SchematicType("C" + type, "C" + shortcut, Type.CHECK_TYPE, null, material); checktype = new SchematicType("C" + type, "C" + shortcut, Type.CHECK_TYPE, null, material);