SPIGOT-508: Set noclip flag when changing armor stand gravity

This commit is contained in:
md_5 2015-02-01 18:12:55 +11:00
parent a956d73f10
commit bbf72f3060

View File

@ -1,5 +1,5 @@
--- ../work/decompile-8eb82bde//net/minecraft/server/EntityArmorStand.java 2014-11-29 16:03:15.597435308 +0000
+++ src/main/java/net/minecraft/server/EntityArmorStand.java 2014-11-29 16:02:17.625436595 +0000
--- ../work/decompile-8eb82bde/net/minecraft/server/EntityArmorStand.java 2015-02-01 18:12:22.718390345 +1100
+++ src/main/java/net/minecraft/server/EntityArmorStand.java 2015-02-01 18:12:22.718390345 +1100
@@ -343,6 +343,11 @@
}
@ -12,3 +12,12 @@
if (!this.world.isStatic && !this.h) {
if (DamageSource.OUT_OF_WORLD.equals(damagesource)) {
this.die();
@@ -542,6 +547,8 @@
}
this.datawatcher.watch(10, Byte.valueOf(b0));
+
+ this.T = flag; // CraftBukkit. // PAIL: Rename (noclip)
}
public boolean hasGravity() {