Skip to content

Commit

Permalink
chore: don't filter unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreSchwang committed Aug 12, 2024
1 parent 042fb38 commit 7e183a2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@
import java.util.Locale;
import java.util.Set;
import java.util.UUID;
import java.util.stream.Collectors;

/**
* Player Events involving plots.
Expand Down Expand Up @@ -214,7 +213,7 @@ public class PlayerEventListener implements Listener {
// @formatter:off
// "temporary" fix for https://hub.spigotmc.org/jira/browse/SPIGOT-7813
// can (and should) be removed when 1.21 support is dropped
// List of all interactable 1.21 materials - therefor filtered (in case of 1.20.6)
// List of all interactable 1.21 materials
INTERACTABLE_MATERIALS = Material.CHEST.isInteractable() ? null : Set.of(
"REDSTONE_ORE", "DEEPSLATE_REDSTONE_ORE", "CHISELED_BOOKSHELF", "DECORATED_POT", "CHEST", "CRAFTING_TABLE",
"FURNACE", "JUKEBOX", "OAK_FENCE", "SPRUCE_FENCE", "BIRCH_FENCE", "JUNGLE_FENCE", "ACACIA_FENCE", "CHERRY_FENCE",
Expand Down Expand Up @@ -268,7 +267,7 @@ public class PlayerEventListener implements Listener {
"LIGHT_GRAY_CANDLE_CAKE", "CYAN_CANDLE_CAKE", "PURPLE_CANDLE_CAKE", "BLUE_CANDLE_CAKE", "BROWN_CANDLE_CAKE",
"GREEN_CANDLE_CAKE", "RED_CANDLE_CAKE", "BLACK_CANDLE_CAKE", "CAVE_VINES", "CAVE_VINES_PLANT",
"POTTED_AZALEA_BUSH", "POTTED_FLOWERING_AZALEA_BUSH"
).stream().filter(name -> Material.getMaterial(name) != null).collect(Collectors.toSet());
);
// @formatter:on
}

Expand Down

0 comments on commit 7e183a2

Please sign in to comment.