From a46dfc6763809f43f34cd91e83ba51fc1b7fb729 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 22 Oct 2019 07:52:03 +0200 Subject: [PATCH] Fixing shovel bug --- src/de/steamwar/schematicsystem/CheckSchemType.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/de/steamwar/schematicsystem/CheckSchemType.java b/src/de/steamwar/schematicsystem/CheckSchemType.java index bfb3cbc..de98b5a 100644 --- a/src/de/steamwar/schematicsystem/CheckSchemType.java +++ b/src/de/steamwar/schematicsystem/CheckSchemType.java @@ -59,7 +59,6 @@ public class CheckSchemType { INVENTORY = inventory; Set 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