Skip to content

Commit

Permalink
Remove unused SNOW variable which triggers legacy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JLyne committed Aug 11, 2024
1 parent 1ebcbf6 commit 192cd74
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 192cd74

Please sign in to comment.