Move required Client Version to AutoWorld

This commit is contained in:
Fabian Dill
2021-06-27 00:23:42 +02:00
parent a3a68de341
commit 739b563bc2
3 changed files with 7 additions and 4 deletions

View File

@@ -497,10 +497,7 @@ def main(args, seed=None):
minimum_versions = {"server": (0, 1, 1), "clients": client_versions}
games = {}
for slot in world.player_ids:
if world.game[slot] == "Factorio":
client_versions[slot] = (0, 1, 2)
else:
client_versions[slot] = (0, 0, 3)
client_versions[slot] = world.worlds[slot].get_required_client_version()
games[slot] = world.game[slot]
connect_names = {base64.b64encode(rom_name).decode(): (team, slot) for
slot, team, rom_name in rom_names}