mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-02-22 07:11:46 +01:00
Move enderchest to use flag
This commit is contained in:
parent
035ccee2a6
commit
09a9bea3a7
@ -758,8 +758,7 @@ private void handleBlockRightClick(PlayerInteractEvent event) {
|
||||
|| type == BlockID.DISPENSER
|
||||
|| type == BlockID.FURNACE
|
||||
|| type == BlockID.BURNING_FURNACE
|
||||
|| type == BlockID.BREWING_STAND
|
||||
|| type == BlockID.ENDER_CHEST) { // meh?
|
||||
|| type == BlockID.BREWING_STAND) {
|
||||
if (!plugin.getGlobalRegionManager().hasBypass(player, world)
|
||||
&& !set.canBuild(localPlayer)
|
||||
&& !set.allows(DefaultFlag.CHEST_ACCESS, localPlayer)) {
|
||||
@ -797,6 +796,7 @@ private void handleBlockRightClick(PlayerInteractEvent event) {
|
||||
|| type == BlockID.BREWING_STAND
|
||||
|| type == BlockID.ENCHANTMENT_TABLE
|
||||
|| type == BlockID.CAULDRON
|
||||
|| type == BlockID.ENDER_CHEST // blah
|
||||
|| type == BlockID.BEACON
|
||||
|| type == BlockID.ANVIL) {
|
||||
if (!plugin.getGlobalRegionManager().hasBypass(player, world)
|
||||
|
Loading…
Reference in New Issue
Block a user