Correctly handle ArmorStand invisibility

This commit is contained in:
Jake Potrebic 2023-03-05 14:38:21 -08:00
parent 663afe7045
commit 6e85945a4b

View File

@ -152,6 +152,14 @@ public class CraftArmorStand extends CraftLivingEntity implements ArmorStand {
this.getHandle().noPhysics = !gravity;
}
// Paper start - Armor Stand has its own invisible field
@Override
public void setInvisible(final boolean invisible) {
this.getHandle().setInvisible(invisible);
super.setInvisible(invisible);
}
// Paper end
@Override
public boolean isVisible() {
return !this.getHandle().isInvisible();