mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-08 11:59:43 +01:00
Protect armor stands from all non-Player entities, not just living ones.
Fixes WORLDGUARD-3796.
This commit is contained in:
parent
1c29e85f19
commit
85693b91b3
@ -167,7 +167,7 @@ private void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
} else if (defender.getType() == Entities.armorStandType && Entities.isNonPlayerCreature(attacker)) {
|
||||
} else if (defender.getType() == Entities.armorStandType && !(attacker instanceof Player)) {
|
||||
if (wcfg.blockEntityArmorStandDestroy) {
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user