Skip to content

Commit

Permalink
Add support for Elytra flying
Browse files Browse the repository at this point in the history
 - Closes #7
  • Loading branch information
squeek502 committed Aug 1, 2016
1 parent aa77702 commit 17a0ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/squeek/quakemovement/QuakeClientPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void moveEntityWithHeading(float sidemove, float forwardmove)
double d1 = this.player.posY;
double d2 = this.player.posZ;

if (this.player.capabilities.isFlying && this.player.getRidingEntity() == null)
if ((this.player.capabilities.isFlying || this.player.isElytraFlying()) && this.player.getRidingEntity() == null)
super.moveEntityWithHeading(sidemove, forwardmove);
else
this.quake_moveEntityWithHeading(sidemove, forwardmove);
Expand Down

0 comments on commit 17a0ffc

Please sign in to comment.