mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Correctly handle ArmorStand invisibility
This commit is contained in:
parent
663afe7045
commit
6e85945a4b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user