diff --git a/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java b/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java index aba29ad..241beff 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SchematicType.java @@ -29,7 +29,7 @@ import java.util.*; import java.util.stream.Collectors; public class SchematicType { - public static final SchematicType Normal = new SchematicType("Normal", "", Type.NORMAL, null, null); //Has to stay publicly availible + public static final SchematicType Normal = new SchematicType("Normal", "", Type.NORMAL, null, SWItem.getMaterial("STONE_BUTTON")); //Has to stay publicly availible private static final Map fromDB; private static final List types; @@ -56,8 +56,8 @@ public class SchematicType { continue; SchematicType checktype = null; - String materialString = config.getString("material"); - Material material = materialString != null ? SWItem.getMaterial(materialString) : null; + String materialString = config.getString("Schematic.Material"); + Material material = materialString != null ? SWItem.getMaterial(materialString) : SWItem.getMaterial("STONE_BUTTON"); if(!config.getStringList("CheckQuestions").isEmpty()) { checktype = new SchematicType("C" + type, "C" + shortcut, Type.CHECK_TYPE, null, material); @@ -86,7 +86,7 @@ public class SchematicType { this.kuerzel = kuerzel; this.type = type; this.checkType = checkType; - this.material = material == null ? Material.STONE_BUTTON : material; + this.material = material; } public boolean isAssignable(){