SteamWar/SpigotCore
Archiviert
13
0

Fix SchematicType

Dieser Commit ist enthalten in:
yoyosource 2021-12-19 11:05:35 +01:00
Ursprung 118a8e8277
Commit a63dbafd2b

Datei anzeigen

@ -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<String, SchematicType> fromDB;
private static final List<SchematicType> 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(){