13
0
Dieser Commit ist enthalten in:
Lixfel 2020-01-25 09:24:50 +01:00
Ursprung 44a4d8a699
Commit d5327e3d26

Datei anzeigen

@ -148,7 +148,11 @@ class CheckSchemType_12 {
continue; 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")) if(itemType == null && item.getString("id").equals("minecraft:fire_charge"))
itemType = Material.FIREBALL; itemType = Material.FIREBALL;
if(itemType == null) //Leere Slots if(itemType == null) //Leere Slots