Fix SchematicType
Dieser Commit ist enthalten in:
Ursprung
118a8e8277
Commit
a63dbafd2b
@ -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(){
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren