Fix NPE
Dieser Commit ist enthalten in:
Ursprung
44a4d8a699
Commit
d5327e3d26
@ -148,7 +148,11 @@ class CheckSchemType_12 {
|
||||
continue;
|
||||
}
|
||||
|
||||
Material itemType = Material.getMaterial(item.getString("id").split(":")[1].toUpperCase().replace("SHOVEL", "SPADE"));
|
||||
String materialName = item.getString("id");
|
||||
if(materialName.contains(":"))
|
||||
materialName = materialName.split(":")[1];
|
||||
materialName = materialName.toUpperCase().replace("SHOVEL", "SPADE");
|
||||
Material itemType = Material.getMaterial(materialName);
|
||||
if(itemType == null && item.getString("id").equals("minecraft:fire_charge"))
|
||||
itemType = Material.FIREBALL;
|
||||
if(itemType == null) //Leere Slots
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren