Skip to content

Commit

Permalink
Remove unused SNOW field which triggers legacy mode (#4472)
Browse files Browse the repository at this point in the history
Remove unused SNOW variable which triggers legacy mode
  • Loading branch information
JLyne authored Aug 15, 2024
1 parent 84b1af8 commit fad038e
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,22 +106,13 @@
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;
import static org.bukkit.Tag.WALL_CORALS;

@SuppressWarnings("unused")
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 WorldEdit worldEdit;

Expand Down

0 comments on commit fad038e

Please sign in to comment.