From fad038ef7813772ddb15ff2306873287920f590c Mon Sep 17 00:00:00 2001 From: James Lyne Date: Thu, 15 Aug 2024 06:37:32 +0100 Subject: [PATCH] Remove unused SNOW field which triggers legacy mode (#4472) Remove unused SNOW variable which triggers legacy mode --- .../plotsquared/bukkit/listener/BlockEventListener.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java index 6a264c34d..cf1c57878 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java @@ -106,9 +106,6 @@ import org.checkerframework.checker.nullness.qual.NonNull; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.Set; -import java.util.stream.Collectors; -import java.util.stream.Stream; import static org.bukkit.Tag.CORALS; import static org.bukkit.Tag.CORAL_BLOCKS; @@ -116,12 +113,6 @@ import static org.bukkit.Tag.WALL_CORALS; @SuppressWarnings("unused") public class BlockEventListener implements Listener { - - private static final Set SNOW = Stream.of(Material.values()) // needed as Tag.SNOW isn't present in 1.16.5 - .filter(material -> material.name().contains("SNOW")) - .filter(Material::isBlock) - .collect(Collectors.toUnmodifiableSet()); - private final PlotAreaManager plotAreaManager; private final WorldEdit worldEdit;