From 93d0011b466ec4e3e7afeb4a44b40998adceccc8 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Tue, 11 Nov 2025 17:20:10 +0100 Subject: [PATCH] Update `openMaterialSelector` to exclude non-item materials in `UtilGui`. Signed-off-by: Chaoscaot --- .../SpigotCore_Main/src/de/steamwar/inventory/UtilGui.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {