From 6e85945a4b033569f340b354d546d1052e231b80 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Sun, 5 Mar 2023 14:38:21 -0800 Subject: [PATCH] Correctly handle ArmorStand invisibility --- .../org/bukkit/craftbukkit/entity/CraftArmorStand.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java index c8713200d9..184fe8257e 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java @@ -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();