Skip to content

Instantly share code, notes, and snippets.

@jonnyli1125
Created December 25, 2012 05:10
Show Gist options
  • Save jonnyli1125/4371717 to your computer and use it in GitHub Desktop.
Save jonnyli1125/4371717 to your computer and use it in GitHub Desktop.
MCDawn - Player.OnGround
public static bool OnGround(Player p) {
if (!Block.Walkthrough(p.level.GetTile((ushort)(p.pos[0] / 32), (ushort)((p.pos[1] / 32) - 2), (ushort)(p.pos[2] / 32)))) return true;
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment