2023-03-06 19:17:03 +01:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jake Potrebic <jake.m.potrebic@gmail.com>
|
|
|
|
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
|
2023-08-14 01:32:51 +02:00
|
|
|
index 273f3c029f878c8a30e4f0911d79195c023d3442..dc26be80f2c1f058451c0d446165bc78a0ff8c47 100644
|
2023-03-06 19:17:03 +01:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java
|
2023-08-14 01:32:51 +02:00
|
|
|
@@ -152,6 +152,14 @@ public class CraftArmorStand extends CraftLivingEntity implements ArmorStand {
|
2023-03-06 19:17:03 +01:00
|
|
|
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();
|