mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-11 02:47:33 +01:00
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:
parent
821c3e689e
commit
0165175a2e
@ -181,7 +181,7 @@ private void onEntityDamageByBlock(EntityDamageByBlockEvent event) {
|
||||
// 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);
|
||||
|
Loading…
Reference in New Issue
Block a user