Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. for (final Ship ship : gameMap.getMyPlayer().getShips().values()) {
  2. if (ship.getDockingStatus() != Ship.DockingStatus.Undocked) {
  3. continue;
  4. }
  5. Entity entity = (Entity)ship;
  6.  
  7. for (final Entity p : gameMap.nearbyEntitiesByDistance(entity).values()) {
  8. Planet planet = (Planet)p;
  9. if (planet.isOwned()) {
  10. continue;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement