From a63dbafd2b395942987ca481d086612a6b47b06c Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 19 Dec 2021 11:05:35 +0100 Subject: [PATCH] Fix SchematicType --- SpigotCore_Main/src/de/steamwar/sql/SchematicType.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(){