Fix gravity for players

This commit is contained in:
fullwall 2017-06-08 19:28:17 +08:00
parent 9f291dfec2
commit 98774bac15
1 changed files with 2 additions and 1 deletions

View File

@ -129,7 +129,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
updatePackets(navigating);
if (!navigating && getBukkitEntity() != null && npc.getTrait(Gravity.class).hasGravity()
&& Util.isLoaded(getBukkitEntity().getLocation(LOADED_LOCATION))) {
g(0, 0);
a(0, 0, 0);
}
if (Math.abs(motX) < EPSILON && Math.abs(motY) < EPSILON && Math.abs(motZ) < EPSILON) {
motX = motY = motZ = 0;
@ -320,6 +320,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder, Skinnable
}
public void livingEntityBaseTick() {
Y();
this.aC = this.aD;
this.aJ = this.aK;
if (this.hurtTicks > 0) {