Skip to content

Commit 3fab576

Browse files
authored
Merge pull request #90 from TaigoStudio/patch-4
Fix 1.20 bug (autoconnection server)
2 parents 2e1a8ec + feedd31 commit 3fab576

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CmlLib/Core/Launcher/MLaunch.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ public string[] CreateArg()
161161
// options
162162
if (!string.IsNullOrEmpty(launchOption.ServerIp))
163163
{
164+
if (launchOption.ServerPort != DefaultServerPort)
165+
args.Add("--quickPlayMultiplayer " + $"{launchOption.ServerIp}:{launchOption.ServerPort}");
166+
else
167+
args.Add("--quickPlayMultiplayer " + $"{launchOption.ServerIp}");
164168
args.Add("--server " + handleEmpty(launchOption.ServerIp));
165169

166170
if (launchOption.ServerPort != DefaultServerPort)

0 commit comments

Comments
 (0)