Skip to content

Commit bd5518f

Browse files
bigkraigelicwhite
authored andcommitted
the MoveToFortWorker should always go to the nearest fort (#1666)
1 parent b91ec50 commit bd5518f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pokemongo_bot/cell_workers/move_to_fort_worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def work(self):
5757
return WorkerResult.SUCCESS
5858

5959
def get_nearest_fort(self):
60-
forts = self.bot.get_forts()
60+
forts = self.bot.get_forts(order_by_distance=True)
6161

6262
# Remove stops that are still on timeout
6363
forts = filter(lambda x: x["id"] not in self.fort_timeouts, forts)

0 commit comments

Comments
 (0)