summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-06-12 16:32:51 +1000
committermd_5 <git@md-5.net>2016-06-12 16:32:51 +1000
commit7964365c84f23425202ac1d30b08b0d973701531 (patch)
treec1003f9776d189846b7ded364eae18ff05ab6f86 /src/main/java/org
parentac58f3840ebe6060511c56ca8c4440916ea46425 (diff)
downloadcraftbukkit-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.java7
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();
}