Fix other explosion flag only clearing blocklist

This commit is contained in:
wizjany 2013-04-09 12:25:05 -04:00
parent cef7d5bb12
commit 874248f8b5

View File

@ -671,7 +671,6 @@ public void onEntityExplode(EntityExplodeEvent event) {
} else {
// unhandled entity
if (wcfg.blockOtherExplosions) {
event.blockList().clear();
event.setCancelled(true);
return;
}
@ -679,7 +678,7 @@ public void onEntityExplode(EntityExplodeEvent event) {
RegionManager mgr = plugin.getGlobalRegionManager().get(world);
for (Block block : event.blockList()) {
if (!mgr.getApplicableRegions(toVector(block)).allows(DefaultFlag.OTHER_EXPLOSION)) {
event.blockList().clear();
event.setCancelled(true);
return;
}
}