From cf049623b35f171d35234a46a0aaf7f20c858e5b Mon Sep 17 00:00:00 2001 From: qwint Date: Fri, 16 Aug 2024 19:46:13 -0500 Subject: [PATCH] remove this for like the 12th time, --- worlds/tracker/TrackerClient.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/worlds/tracker/TrackerClient.py b/worlds/tracker/TrackerClient.py index b428cfa51dbc..dc669992ca3e 100644 --- a/worlds/tracker/TrackerClient.py +++ b/worlds/tracker/TrackerClient.py @@ -511,13 +511,6 @@ def run_generator(self, slot_data: Optional[Dict] = None): logger.error(tb) def TMain(self, args, seed=None, baked_server_options: Optional[Dict[str, object]] = None): - def set_options(self): - for player in self.player_ids: - world_type = AutoWorld.AutoWorldRegister.world_types[self.game[player]] - self.worlds[player] = world_type(self, player) - options_dataclass: typing.Type[Options.PerGameCommonOptions] = world_type.options_dataclass - self.worlds[player].options = options_dataclass(**{option_key: getattr(args, option_key)[player] - for option_key in options_dataclass.type_hints}) if not baked_server_options: baked_server_options = get_settings().server_options.as_dict() assert isinstance(baked_server_options, dict) @@ -548,8 +541,7 @@ def set_options(self): multiworld.sprite = args.sprite.copy() multiworld.sprite_pool = args.sprite_pool.copy() - # multiworld.set_options(args) - set_options(multiworld) + multiworld.set_options(args) multiworld.set_item_links() multiworld.state = CollectionState(multiworld) logger.info('Archipelago Version %s - Seed: %s\n', __version__, multiworld.seed) @@ -791,5 +783,6 @@ def launch(): asyncio.run(main(args)) + if __name__ == "__main__": launch()