Skip to content

Commit

Permalink
override to not call CommonContext init because then we cannot create…
Browse files Browse the repository at this point in the history
… TrackerContext in a non-async context
  • Loading branch information
qwint committed Aug 2, 2024
1 parent 5a7f7c5 commit 0d3b6aa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions worlds/tracker/TrackerClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,14 @@ class TrackerGameContext(CommonContext):
tracker_failed = False
re_gen_passthrough = None

def __init__(self, server_address, password):
super().__init__(server_address, password)
def __init__(self, server_address, password, no_connection: bool = False):
if no_connection:
from worlds import network_data_package
self.item_names = self.NameLookupDict(self, "item")
self.location_names = self.NameLookupDict(self, "location")
self.update_data_package(network_data_package)
else:
super().__init__(server_address, password)
self.items_handling = ITEMS_HANDLING
self.locations_checked = []
self.locations_available = []
Expand Down

0 comments on commit 0d3b6aa

Please sign in to comment.