From 27c05030e5db558c11bd83eb1ec5bd9e2d5b9772 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Mon, 6 Mar 2023 10:17:03 -0800 Subject: [PATCH] Correctly handle ArmorStand invisibility (#8944) --- ...ectly-handle-ArmorStand-invisibility.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 patches/server/0967-Correctly-handle-ArmorStand-invisibility.patch diff --git a/patches/server/0967-Correctly-handle-ArmorStand-invisibility.patch b/patches/server/0967-Correctly-handle-ArmorStand-invisibility.patch new file mode 100644 index 0000000000..103ddcbb11 --- /dev/null +++ b/patches/server/0967-Correctly-handle-ArmorStand-invisibility.patch @@ -0,0 +1,25 @@ +From 0000000000000000000000000000000000000000 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 + + +diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java +index f80cafe3544c7e6c3c29073ba6539783adf6666c..17d08d2c90047ebfc4098b087be091b83111a40f 100644 +--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java ++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java +@@ -158,6 +158,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();