Fixed a tab issue with WorldGuardBlockListener due to the mycelium commit.

This commit is contained in:
sk89q 2012-11-04 13:12:06 -08:00
parent b3f9da67b7
commit 1bdd7f9a6b

View File

@ -726,17 +726,19 @@ public void onBlockSpread(BlockSpreadEvent event) {
return;
}
}
if (fromType == BlockID.MYCELIUM) {
if (wcfg.disableMyceliumSpread) {
event.setCancelled(true);
return;
}
if(wcfg.useRegions && !plugin.getGlobalRegionManager().allows(
DefaultFlag.MYCELIUM_SPREAD, event.getBlock().getLocation())) {
event.setCancelled(true);
return;
}
if (wcfg.disableMyceliumSpread) {
event.setCancelled(true);
return;
}
if (wcfg.useRegions
&& !plugin.getGlobalRegionManager().allows(
DefaultFlag.MYCELIUM_SPREAD, event.getBlock().getLocation())) {
event.setCancelled(true);
return;
}
}
}