Punching fire in a region without build permissions should no longer douse the fire.

This commit is contained in:
Wizjany 2011-08-27 13:44:40 -04:00
parent 297e06ba71
commit b938271b4d

View File

@ -441,6 +441,16 @@ private void handleBlockLeftClick(PlayerInteractEvent event) {
return;
}
}
if (block.getRelative(event.getBlockFace()).getType() == Material.FIRE) {
if (!plugin.getGlobalRegionManager().hasBypass(player, world)
&& !set.canBuild(localPlayer)) {
event.setUseInteractedBlock(Result.DENY);
event.setCancelled(true);
return;
}
}
}
}