paradoxed

Untitled

Mar 2nd, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public static boolean atMine() {
  2. List<GameObject> rocks = ctx.getGameObjects().all("Rocks");
  3. if(rocks != null) {
  4. for (GameObject r : rocks) {
  5. int id = r.getID();
  6. for (Integer i : oreObjectIds) {
  7. if (i == id) {
  8. return true;
  9. }
  10. }
  11. }
  12. }
  13. return false;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment