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

Fixes #1175
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;
}
}
}
/*