diff options
author | md_5 <git@md-5.net> | 2016-06-12 16:32:51 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-06-12 16:32:51 +1000 |
commit | 7964365c84f23425202ac1d30b08b0d973701531 (patch) | |
tree | c1003f9776d189846b7ded364eae18ff05ab6f86 /src/main/java/org | |
parent | ac58f3840ebe6060511c56ca8c4440916ea46425 (diff) | |
download | craftbukkit-7964365c84f23425202ac1d30b08b0d973701531.tar craftbukkit-7964365c84f23425202ac1d30b08b0d973701531.tar.gz craftbukkit-7964365c84f23425202ac1d30b08b0d973701531.tar.lz craftbukkit-7964365c84f23425202ac1d30b08b0d973701531.tar.xz craftbukkit-7964365c84f23425202ac1d30b08b0d973701531.zip |
SPIGOT-2398: Armor stands still need to be treated special for gravity
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java index 8a6df026..2b66a08a 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftArmorStand.java @@ -150,6 +150,13 @@ public class CraftArmorStand extends CraftLivingEntity implements ArmorStand { } @Override + public void setGravity(boolean gravity) { + super.setGravity(gravity); + // Armor stands are special + getHandle().noclip = !gravity; + } + + @Override public boolean isVisible() { return !getHandle().isInvisible(); } |