diff --git a/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java b/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java index 241beff..5b5bd0d 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java @@ -56,8 +56,7 @@ public class SchematicType { continue; SchematicType checktype = null; - String materialString = config.getString("Schematic.Material"); - Material material = materialString != null ? SWItem.getMaterial(materialString) : SWItem.getMaterial("STONE_BUTTON"); + Material material = SWItem.getMaterial(config.getString("Schematic.Material", "STONE_BUTTON")); if(!config.getStringList("CheckQuestions").isEmpty()) { checktype = new SchematicType("C" + type, "C" + shortcut, Type.CHECK_TYPE, null, material);