Multiserver: [0,1] == (0,1) -> False, turns out.

This commit is contained in:
Fabian Dill 2020-07-24 14:00:59 +02:00
parent 5895e0ce3d
commit 88ba7b55d2
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ class Context(Node):
def set_save(self, savedata: dict):
rom_names = savedata["rom_names"] # convert from TrackerList to List in case of ponyorm
try:
adjusted = {rom: other for rom, other in rom_names}
adjusted = {rom: (team, slot) for rom, (team, slot) in rom_names}
except TypeError:
adjusted = {tuple(rom): (team, slot) for (rom, (team, slot)) in rom_names} # old format, ponyorm friendly
if self.rom_names != adjusted: