13
0

Fixing shovel bug

Dieser Commit ist enthalten in:
Lixfel 2019-10-22 07:52:03 +02:00
Ursprung 4d6b3ef738
Commit a46dfc6763

Datei anzeigen

@ -59,7 +59,6 @@ public class CheckSchemType {
INVENTORY = inventory;
Set<Material> flowers = new HashSet<>();
flowers.add(Material.CHORUS_FLOWER);
flowers.add(Material.YELLOW_FLOWER);
flowers.add(Material.RED_ROSE);
flowers.add(Material.DOUBLE_PLANT);
@ -189,7 +188,7 @@ public class CheckSchemType {
continue;
}
Material type = Material.getMaterial(item.getString("id").split(":")[1].toUpperCase());
Material type = Material.getMaterial(item.getString("id").split(":")[1].toUpperCase().replace("SHOVEL", "SPADE"));
if(type == null && item.getString("id").equals("minecraft:fire_charge"))
type = Material.FIREBALL;
if(type == null) //Leere Slots