diff --git a/src/main/java/world/bentobox/bentobox/listeners/flags/protection/BlockInteractionListener.java b/src/main/java/world/bentobox/bentobox/listeners/flags/protection/BlockInteractionListener.java index 56b723191..bba711a1f 100644 --- a/src/main/java/world/bentobox/bentobox/listeners/flags/protection/BlockInteractionListener.java +++ b/src/main/java/world/bentobox/bentobox/listeners/flags/protection/BlockInteractionListener.java @@ -248,6 +248,12 @@ private boolean checkSpecialCases(Event e, Player player, Block block) { return true; } if (Util.isVersionAtLeast("1.21.10")) { + // Wooden shelves + if (Tag.WOODEN_SHELVES.isTagged(type)) { + this.checkIsland(e, player, loc, Flags.BOOKSHELF); + return true; + } + // Prevent animation of copper golems. Use break blocks for now. This could potentiall have it's own flag in the future. if (Tag.COPPER_GOLEM_STATUES.isTagged(type)) { this.checkIsland(e, player, loc, Flags.BREAK_BLOCKS); diff --git a/src/main/resources/locales/en-US.yml b/src/main/resources/locales/en-US.yml index eb7234964..cbee574f4 100644 --- a/src/main/resources/locales/en-US.yml +++ b/src/main/resources/locales/en-US.yml @@ -989,11 +989,11 @@ protection: &a entering into boats. hint: No boat interaction allowed BOOKSHELF: - name: Bookshelves + name: Shelves description: |- - &a Allow to place books - &a or to take books. - hint: cannot place a book or take a book. + &a Allow to place item + &a or to take item. + hint: cannot place an item or take an item. BREAK_BLOCKS: description: Toggle breaking name: Break blocks