Fixed sticky pistons not being blocked by the flag in some cases

This commit is contained in:
Wizjany 2011-10-18 17:46:59 -04:00
parent bc37d365ab
commit e8c4c9b218

View File

@ -857,7 +857,7 @@ public void onBlockPistonRetract(BlockPistonRetractEvent event) {
if (wcfg.useRegions && event.isSticky()) {
if (!(plugin.getGlobalRegionManager().allows(DefaultFlag.PISTONS, event.getRetractLocation()))
&& !(plugin.getGlobalRegionManager().allows(DefaultFlag.PISTONS, event.getBlock().getLocation()))) {
|| !(plugin.getGlobalRegionManager().allows(DefaultFlag.PISTONS, event.getBlock().getLocation()))) {
event.setCancelled(true);
}
}