diff --git a/pokete.py b/pokete.py index 27739c44..1b0e62b3 100755 --- a/pokete.py +++ b/pokete.py @@ -736,8 +736,9 @@ def save(): old_map = figure.oldmap.name x = figure.x y = figure.y + last_center_map = figure.last_center_map.name if modeProvider.mode == Mode.MULTI: - _map, old_map, x, y = connector.connector.saved_pos + _map, old_map, last_center_map, x, y = connector.connector.saved_pos _si = { "user": figure.name, @@ -745,7 +746,7 @@ def save(): "ver": VERSION, "map": _map, "oldmap": old_map, - "last_center_map": figure.last_center_map.name, + "last_center_map": last_center_map, "x": x, "y": y, "achievements": achievements.achieved, diff --git a/pokete_classes/multiplayer/connector.py b/pokete_classes/multiplayer/connector.py index fbd3df38..ecdc603c 100644 --- a/pokete_classes/multiplayer/connector.py +++ b/pokete_classes/multiplayer/connector.py @@ -122,6 +122,7 @@ def handshake(self): self.saved_pos = ( self.figure.map.name, self.figure.oldmap.name, + self.figure.last_center_map.name, self.figure.x, self.figure.y, )