Skip to content

Instantly share code, notes, and snippets.

@nijikokun
Created December 4, 2010 08:28
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 nijikokun/728036 to your computer and use it in GitHub Desktop.
Save nijikokun/728036 to your computer and use it in GitHub Desktop.
double x = player.getX();
double z = player.getZ();
double a = Double.valueOf(positions[1]);
double b = Double.valueOf(positions[2]);
if(a >= x && -a <= x) {
if(b >= z && -b <= z) {
return true;
}
}
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment