mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +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;
|
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
|
@Override
|
||||||
public boolean isVisible() {
|
public boolean isVisible() {
|
||||||
return !this.getHandle().isInvisible();
|
return !this.getHandle().isInvisible();
|
||||||
|
Loading…
Reference in New Issue
Block a user