Guest User

Untitled

a guest
Jan 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. public static Zone getWhiteZoneByCoords(int x, int z) {
  2.  
  3. for (int i = 0; i < whiteZones.size(); i++) {
  4.  
  5. int xPos = whiteZones.get(i).x1 + 10;
  6. int zPos = whiteZones.get(i).z1 + 10;
  7. if (xPos == x && zPos == z) {
  8.  
  9. MsgTools.log("ZoneCenter: " + xPos + ", " + zPos);
  10. MsgTools.log("Sending zone: " + whiteZones.get(i));
  11. return whiteZones.get(i);
  12. }
  13. }
  14.  
  15. return null;
  16. }
Add Comment
Please, Sign In to add comment