Did wcfg.useRegions really need to be checked twice?

This commit is contained in:
Eric Wieser 2012-04-28 18:18:51 +02:00
parent 18b5a4e106
commit acb1d18654

View File

@ -518,14 +518,12 @@ public void onEntityExplode(EntityExplodeEvent event) {
}
if (wcfg.useRegions) {
if (wcfg.useRegions) {
RegionManager mgr = plugin.getGlobalRegionManager().get(world);
RegionManager mgr = plugin.getGlobalRegionManager().get(world);
for (Block block : event.blockList()) {
if (!mgr.getApplicableRegions(toVector(block)).allows(DefaultFlag.ENDERDRAGON_BLOCK_DAMAGE)) {
event.blockList().clear();
return;
}
for (Block block : event.blockList()) {
if (!mgr.getApplicableRegions(toVector(block)).allows(DefaultFlag.ENDERDRAGON_BLOCK_DAMAGE)) {
event.blockList().clear();
return;
}
}
}