Skip to content

Instantly share code, notes, and snippets.

@tterrag1098
Created April 22, 2014 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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