Created
December 4, 2010 08:28
-
-
Save nijikokun/728036 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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