Closed WinnLov closed 1 year ago
Hi. This is an authlib bug. It is observed only on these versions in offline mode. Many solved this problem by simply decompiling authlib and fixing this error.
You can change the authlib by path libraries\com\mojang\authlib\2.1.28 to this file before launching minecraft authlib-2.1.28-workaround.zip
Thanks, it looks like it really is an issue with authlib. Thanks again!
You may need to use authlib-injector using official Mojang servers. I have not tested with the official Mojang server, but with my own authentication server, the online game button is active. https://github.com/yushijinhun/authlib-injector
easy solution: add extra JVM arguments
var process = await launcher.InstallAndBuildProcessAsync("1.16.5", new MLaunchOption
{
Session = MSession.CreateOfflineSession("username"),
ExtraJvmArguments =
[
MArgument.FromCommandLine("-Dminecraft.api.env=custom -Dminecraft.api.auth.host=https://invalid.invalid -Dminecraft.api.account.host=https://invalid.invalid -Dminecraft.api.session.host=https://invalid.invalid -Dminecraft.api.services.host=https://invalid.invalid"),
]
});t