Additionally block other explosion if the defender is a block like entity to be consitent with "block" explosion protections (#1812)

This commit is contained in:
Wyatt Childers 2021-08-08 22:58:34 -04:00 committed by GitHub
parent 821c3e689e
commit 0165175a2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ public class WorldGuardEntityListener extends AbstractListener {
// handled anywhere else
if (type == DamageCause.BLOCK_EXPLOSION
&& (wcfg.blockOtherExplosions
|| (wcfg.explosionFlagCancellation
|| ((wcfg.explosionFlagCancellation || Entities.isConsideredBuildingIfUsed(defender))
&& !StateFlag.test(WorldGuard.getInstance().getPlatform().getRegionContainer().createQuery()
.queryState(BukkitAdapter.adapt(defender.getLocation()), (RegionAssociable) null, Flags.OTHER_EXPLOSION))))) {
event.setCancelled(true);