mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-25 01:21:21 +01:00
Adds glow berries protection. (#2027)
Uuups... someone forgot to add them. Fixes #2020
This commit is contained in:
parent
35ce1a7d81
commit
173808b787
@ -190,7 +190,7 @@ public class BlockInteractionListener extends FlagListener
|
||||
case DRAGON_EGG -> this.checkIsland(e, player, loc, Flags.DRAGON_EGG);
|
||||
case END_PORTAL_FRAME, RESPAWN_ANCHOR -> this.checkIsland(e, player, loc, Flags.PLACE_BLOCKS);
|
||||
case GLOW_ITEM_FRAME, ITEM_FRAME -> this.checkIsland(e, player, loc, Flags.ITEM_FRAME);
|
||||
case SWEET_BERRY_BUSH -> this.checkIsland(e, player, loc, Flags.BREAK_BLOCKS);
|
||||
case SWEET_BERRY_BUSH, CAVE_VINES -> this.checkIsland(e, player, loc, Flags.BREAK_BLOCKS);
|
||||
case CAKE -> this.checkIsland(e, player, loc, Flags.CAKE);
|
||||
case LAVA_CAULDRON ->
|
||||
{
|
||||
|
@ -113,6 +113,7 @@ public class BlockInteractionListenerTest extends AbstractCommonSetup {
|
||||
clickedBlocks.put(Material.ITEM_FRAME, Flags.ITEM_FRAME);
|
||||
clickedBlocks.put(Material.GLOW_ITEM_FRAME, Flags.ITEM_FRAME);
|
||||
clickedBlocks.put(Material.SWEET_BERRY_BUSH, Flags.BREAK_BLOCKS);
|
||||
clickedBlocks.put(Material.CAVE_VINES, Flags.BREAK_BLOCKS);
|
||||
clickedBlocks.put(Material.CAKE, Flags.CAKE);
|
||||
clickedBlocks.put(Material.BEEHIVE, Flags.HIVE);
|
||||
clickedBlocks.put(Material.BEE_NEST, Flags.HIVE);
|
||||
|
Loading…
Reference in New Issue
Block a user