Skip to content

Instantly share code, notes, and snippets.

@tterrag1098
Created April 22, 2014 08:46
Show Gist options
  • Save tterrag1098/11170560 to your computer and use it in GitHub Desktop.
Save tterrag1098/11170560 to your computer and use it in GitHub Desktop.
player.fallDistance = Math.min(player.fallDistance, 2.5f);
if (!player.capabilities.isFlying)
{
player.motionY = Math.min(player.motionY, -0.32f);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment