Move enderchest to use flag

This commit is contained in:
Wizjany 2013-01-13 16:10:06 -05:00
parent 035ccee2a6
commit 09a9bea3a7

View File

@ -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)