diff --git a/pokemongo_bot/__init__.py b/pokemongo_bot/__init__.py index 57f51f3a67..e46fe3cbdd 100644 --- a/pokemongo_bot/__init__.py +++ b/pokemongo_bot/__init__.py @@ -432,11 +432,10 @@ def _set_starting_position(self): with open('data/last-location-%s.json' % (self.config.username)) as f: location_json = json.load(f) - - self.position = (location_json['lat'], + location = (location_json['lat'], location_json['lng'], 0.0) - print(self.position) - self.api.set_position(*self.position) + print(location) + self.api.set_position(*location) logger.log('') logger.log(