Skip to content

Commit

Permalink
Fix gravity for players
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jun 8, 2017
1 parent 9f291df commit 98774ba
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public void B_() {
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;
Expand Down Expand Up @@ -320,6 +320,7 @@ public boolean isNavigating() {
}

public void livingEntityBaseTick() {
Y();
this.aC = this.aD;
this.aJ = this.aK;
if (this.hurtTicks > 0) {
Expand Down

0 comments on commit 98774ba

Please sign in to comment.