Fix lava movement being totally broken (closes #13)

This commit is contained in:
Ryan Liptak 2017-07-14 20:29:04 -07:00
parent ed909d3bd0
commit d993dc1ed2

View File

@ -99,7 +99,7 @@ public class QuakeClientPlayer extends ClientPlayerBase
@Override @Override
public void moveFlying(float sidemove, float forwardmove, float wishspeed) public void moveFlying(float sidemove, float forwardmove, float wishspeed)
{ {
if ((this.player.capabilities.isFlying && this.player.ridingEntity == null) || this.player.isInWater()) if ((this.player.capabilities.isFlying && this.player.ridingEntity == null) || this.player.isInWater() || this.player.isInLava())
{ {
super.moveFlying(sidemove, forwardmove, wishspeed); super.moveFlying(sidemove, forwardmove, wishspeed);
return; return;