From f71d732a47d0ecd8a8fcbd93d607ad3da323f156 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Wed, 20 Oct 2021 17:28:23 +0200 Subject: [PATCH] Remove LEGACY items from list Signed-off-by: Lixfel --- .../src/de/steamwar/schematicsystem/commands/GUI.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java index 6533cfb..15d1a4a 100644 --- a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java +++ b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java @@ -114,6 +114,8 @@ class GUI { private static void changeItem(Player p, Schematic schem){ List> materials = new LinkedList<>(); for(Material material : Material.values()){ + if(material.name().startsWith("LEGACY_")) + continue; SWItem item = new SWItem(material, "ยง7" + material.name()); if(item.getItemMeta() != null && material.isItem()) materials.add(new SWListInv.SWListEntry<>(item, material));