Skip to content

Commit

Permalink
use world import instead of global get_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint committed Sep 30, 2024
1 parent 420914b commit a730696
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions worlds/tracker/TrackerClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,9 @@ async def disconnect(self, allow_autoreconnect: bool = False):

await super().disconnect(allow_autoreconnect)

def _set_host_settings(self, host):
tracker_settings = host.universal_tracker
def _set_host_settings(self):
from . import TrackerWorld
tracker_settings = TrackerWorld.settings
report_type = "Both"
if tracker_settings['include_location_name']:
if tracker_settings['include_region_name']:
Expand All @@ -534,8 +535,7 @@ def move_slots(args: "Namespace", slot_name: str):
return args

try:
host = get_settings()
yaml_path, self.output_format, self.hide_excluded = self._set_host_settings(host)
yaml_path, self.output_format, self.hide_excluded = self._set_host_settings()
# strip command line args, they won't be useful from the client anyway
sys.argv = sys.argv[:1]
args = mystery_argparse()
Expand Down

0 comments on commit a730696

Please sign in to comment.