diff --git a/pokemongo_bot/__init__.py b/pokemongo_bot/__init__.py index fdfc55b566..0c360843c2 100644 --- a/pokemongo_bot/__init__.py +++ b/pokemongo_bot/__init__.py @@ -465,11 +465,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(