Skip to content

Instantly share code, notes, and snippets.

@strangeglyph
Created September 16, 2011 19:55
Show Gist options
  • Save strangeglyph/1222977 to your computer and use it in GitHub Desktop.
Save strangeglyph/1222977 to your computer and use it in GitHub Desktop.
public static Zone getWhiteZoneByCoords(int x, int z) {
for (int i = 0; i < whiteZones.size(); i++) {
int xPos = whiteZones.get(i).x1 + 10;
int zPos = whiteZones.get(i).z1 + 10;
if (xPos == x && zPos == z) {
MsgTools.log("ZoneCenter: " + xPos + ", " + zPos);
MsgTools.log("Sending zone: " + whiteZones.get(i));
return whiteZones.get(i);
}
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment