Skip to content

Commit

Permalink
Fix joining servers with more modern versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Moresteck committed Nov 15, 2024
1 parent 661bff1 commit 33e38eb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLDecoder;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
Expand All @@ -31,7 +32,7 @@ public InputStream getInputStream() throws IOException {
LFLogger.error("JoinServerHandler", "No match for join server URL :(");
return new ByteArrayInputStream("LF - No match for join server URL".getBytes());
}
String sessionId = matcher.group(8);
String sessionId = URLDecoder.decode(matcher.group(8), "UTF-8");
String serverId = matcher.group(10);

String uuid = LegacyFixLauncher.getValue("uuid", "no-uuid");
Expand Down

0 comments on commit 33e38eb

Please sign in to comment.