Remove unused SNOW field which triggers legacy mode (#4472)

Remove unused SNOW variable which triggers legacy mode
This commit is contained in:
James Lyne 2024-08-15 06:37:32 +01:00 committed by GitHub
parent 84b1af8856
commit fad038ef78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,9 +106,6 @@ import org.checkerframework.checker.nullness.qual.NonNull;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Objects; 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.CORALS;
import static org.bukkit.Tag.CORAL_BLOCKS; import static org.bukkit.Tag.CORAL_BLOCKS;
@ -116,12 +113,6 @@ import static org.bukkit.Tag.WALL_CORALS;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public class BlockEventListener implements Listener { public class BlockEventListener implements Listener {
private static final Set<Material> 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 PlotAreaManager plotAreaManager;
private final WorldEdit worldEdit; private final WorldEdit worldEdit;