Protect armor stands from all non-Player entities, not just living ones.

Fixes WORLDGUARD-3796.
This commit is contained in:
wizjany 2017-01-25 19:39:53 -05:00
parent 1c29e85f19
commit 85693b91b3

View File

@ -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;