From 7f4834412db64ad39f163af79035d7f4a680fa61 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 8 Apr 2024 17:27:34 +0200 Subject: [PATCH] Remove legacy materials if there were any --- .../de/steamwar/bausystem/features/world/SpectatorListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/world/SpectatorListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/world/SpectatorListener.java index 6829fe5b..63e5e2b7 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/world/SpectatorListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/world/SpectatorListener.java @@ -59,6 +59,7 @@ public class SpectatorListener implements Listener { materials.add(Material.COMPARATOR); materials.add(Material.LEVER); for (Material value : Material.values()) { + if (value.isLegacy()) continue; if (value.name().endsWith("_BUTTON")) { materials.add(value); }