From be8e76f30b3b393a21814dc63062196e9ece31e8 Mon Sep 17 00:00:00 2001 From: qwint Date: Wed, 19 Jun 2024 11:39:28 -0500 Subject: [PATCH] Launcher "Text Client" --connect archipelago.gg:38281 should work, it doesn't, this fixes that --- CommonClient.py | 3 ++- Launcher.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CommonClient.py b/CommonClient.py index 19dd44f592a4..b39211d567cc 100644 --- a/CommonClient.py +++ b/CommonClient.py @@ -1034,7 +1034,8 @@ async def main(args): if args.url: url = urllib.parse.urlparse(args.url) - args.connect = url.netloc + if url.netloc: + args.connect = url.netloc if url.username: args.name = urllib.parse.unquote(url.username) if url.password: diff --git a/Launcher.py b/Launcher.py index e4b65be93a68..149c5bfff6f2 100644 --- a/Launcher.py +++ b/Launcher.py @@ -330,7 +330,8 @@ def main(args: Optional[Union[argparse.Namespace, dict]] = None): help="Pass either a patch file, a generated game or the name of a component to run.") run_group.add_argument("args", nargs="*", help="Arguments to pass to component.") - main(parser.parse_args()) + args, unknown_args = parser.parse_known_args() + main(args) from worlds.LauncherComponents import processes for process in processes: