13
0

Remove LEGACY items from list

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-10-20 17:28:23 +02:00
Ursprung 5dcb083954
Commit f71d732a47

Datei anzeigen

@ -114,6 +114,8 @@ class GUI {
private static void changeItem(Player p, Schematic schem){ private static void changeItem(Player p, Schematic schem){
List<SWListInv.SWListEntry<Material>> materials = new LinkedList<>(); List<SWListInv.SWListEntry<Material>> materials = new LinkedList<>();
for(Material material : Material.values()){ for(Material material : Material.values()){
if(material.name().startsWith("LEGACY_"))
continue;
SWItem item = new SWItem(material, "§7" + material.name()); SWItem item = new SWItem(material, "§7" + material.name());
if(item.getItemMeta() != null && material.isItem()) if(item.getItemMeta() != null && material.isItem())
materials.add(new SWListInv.SWListEntry<>(item, material)); materials.add(new SWListInv.SWListEntry<>(item, material));