Multidata: allow SoE/SM/LttP to connect via player name for use in Tracker/Text clients

This commit is contained in:
Fabian Dill
2022-02-09 21:06:34 +01:00
parent 3d17f0d588
commit 14448ad97e
4 changed files with 3 additions and 8 deletions

View File

@@ -319,9 +319,7 @@ class ALTTPWorld(World):
# we skip in case of error, so that the original error in the output thread is the one that gets raised
if rom_name:
new_name = base64.b64encode(bytes(self.rom_name)).decode()
payload = multidata["connect_names"][self.world.player_name[self.player]]
multidata["connect_names"][new_name] = payload
del (multidata["connect_names"][self.world.player_name[self.player]])
multidata["connect_names"][new_name] = multidata["connect_names"][self.world.player_name[self.player]]
def get_required_client_version(self) -> tuple:
return max((0, 2, 4), super(ALTTPWorld, self).get_required_client_version())