Permalink
Browse files

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

Fixes WORLDGUARD-3796.
  • Loading branch information...
wizjany committed Jan 26, 2017
1 parent 1c29e85 commit 85693b91b313022ee1d4d455779a5483bc2d172a
@@ -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;

0 comments on commit 85693b9

Please sign in to comment.