Add optional Material to SchematicType #144
@ -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");
|
||||
YoyoNow markierte diese Unterhaltung als gelöst
Veraltet
|
||||
Material material = materialString != null ? SWItem.getMaterial(materialString) : SWItem.getMaterial("STONE_BUTTON");
|
||||
YoyoNow markierte diese Unterhaltung als gelöst
Veraltet
Lixfel
hat
Warum Material null zulassen und nicht einfach auf den Steinknopf (bitte über SWItem) defaulten? Warum Material null zulassen und nicht einfach auf den Steinknopf (bitte über SWItem) defaulten?
|
||||
|
||||
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
Bitte unbedingt ändern zu: config.getString("Schematic.Material");