Skip to content

Commit

Permalink
remove dependency on ctx.username
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint committed Aug 16, 2024
1 parent 5323020 commit 9514237
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions worlds/tracker/TrackerClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,9 @@ def on_package(self, cmd: str, args: dict):
self.log_to_tab("Internal world was not able to be generated, check your yamls and relaunch", False)
return
self.game = args["slot_info"][str(args["slot"])][1]
if self.username in self.launch_multiworld.world_name_lookup:
internal_id = self.launch_multiworld.world_name_lookup[self.username]
slot_name = self.player_names.get(self.slot, None)
if slot_name in self.launch_multiworld.world_name_lookup:
internal_id = self.launch_multiworld.world_name_lookup[slot_name]
if self.launch_multiworld.worlds[internal_id].game == self.game:
self.multiworld = self.launch_multiworld
self.player_id = internal_id
Expand Down

0 comments on commit 9514237

Please sign in to comment.