mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-28 05:25:20 +01:00
Fix other explosion flag only clearing blocklist
This commit is contained in:
parent
cef7d5bb12
commit
874248f8b5
@ -671,7 +671,6 @@ public void onEntityExplode(EntityExplodeEvent event) {
|
|||||||
} else {
|
} else {
|
||||||
// unhandled entity
|
// unhandled entity
|
||||||
if (wcfg.blockOtherExplosions) {
|
if (wcfg.blockOtherExplosions) {
|
||||||
event.blockList().clear();
|
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -679,7 +678,7 @@ public void onEntityExplode(EntityExplodeEvent event) {
|
|||||||
RegionManager mgr = plugin.getGlobalRegionManager().get(world);
|
RegionManager mgr = plugin.getGlobalRegionManager().get(world);
|
||||||
for (Block block : event.blockList()) {
|
for (Block block : event.blockList()) {
|
||||||
if (!mgr.getApplicableRegions(toVector(block)).allows(DefaultFlag.OTHER_EXPLOSION)) {
|
if (!mgr.getApplicableRegions(toVector(block)).allows(DefaultFlag.OTHER_EXPLOSION)) {
|
||||||
event.blockList().clear();
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user