1
0
mirror of https://github.com/EngineHub/WorldGuard.git synced 2024-12-22 17:17:57 +01:00

Prevent block ignition from lightning strikes if lightning is blocked in region.

Fixes 
This commit is contained in:
zml2008 2012-03-10 21:33:24 -08:00
parent 5454832918
commit c9fdff169f

View File

@ -357,8 +357,12 @@ public void onBlockIgnite(BlockIgniteEvent event) {
event.setCancelled(true);
return;
}
}
if (cause == IgniteCause.LIGHTNING && !set.allows(DefaultFlag.LIGHTNING)) {
event.setCancelled(true);
return;
}
}
}
/*