mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-23 17:47:35 +01:00
Fixed a tab issue with WorldGuardBlockListener due to the mycelium commit.
This commit is contained in:
parent
b3f9da67b7
commit
1bdd7f9a6b
@ -726,17 +726,19 @@ public void onBlockSpread(BlockSpreadEvent event) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fromType == BlockID.MYCELIUM) {
|
if (fromType == BlockID.MYCELIUM) {
|
||||||
if (wcfg.disableMyceliumSpread) {
|
if (wcfg.disableMyceliumSpread) {
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(wcfg.useRegions && !plugin.getGlobalRegionManager().allows(
|
|
||||||
DefaultFlag.MYCELIUM_SPREAD, event.getBlock().getLocation())) {
|
if (wcfg.useRegions
|
||||||
event.setCancelled(true);
|
&& !plugin.getGlobalRegionManager().allows(
|
||||||
return;
|
DefaultFlag.MYCELIUM_SPREAD, event.getBlock().getLocation())) {
|
||||||
}
|
event.setCancelled(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user