diff --git a/SpigotCore_14/src/de/steamwar/inventory/SWItem_14.java b/SpigotCore_14/src/de/steamwar/inventory/SWItem_14.java index 684305d..35bab12 100644 --- a/SpigotCore_14/src/de/steamwar/inventory/SWItem_14.java +++ b/SpigotCore_14/src/de/steamwar/inventory/SWItem_14.java @@ -8,7 +8,11 @@ class SWItem_14 { private SWItem_14(){} static Material getMaterial(String material) { - return Material.valueOf("LEGACY_" + material); + try{ + return Material.valueOf(material); + }catch(IllegalArgumentException e){ + return Material.valueOf("LEGACY_" + material); + } } static Material getDye(int colorCode){