mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-30 19:40:37 +01:00
Correctly handle ArmorStand invisibility
This commit is contained in:
parent
663afe7045
commit
6e85945a4b
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue