diff --git a/SpigotCore/SpigotCore_Main/src/de/steamwar/inventory/UtilGui.java b/SpigotCore/SpigotCore_Main/src/de/steamwar/inventory/UtilGui.java index 0ae87212..6bdb8bfd 100644 --- a/SpigotCore/SpigotCore_Main/src/de/steamwar/inventory/UtilGui.java +++ b/SpigotCore/SpigotCore_Main/src/de/steamwar/inventory/UtilGui.java @@ -40,7 +40,7 @@ public class UtilGui { public static void openMaterialSelector(Player player, String title, Consumer callback) { List> materials = new LinkedList<>(); for(Material material : Material.values()){ - if(material.name().startsWith(Material.LEGACY_PREFIX)) + if(material.name().startsWith(Material.LEGACY_PREFIX) || !material.isItem()) continue; SWItem item = new SWItem(material, "ยง7" + material.name()); if(item.getItemMeta() != null && material.isItem()) {