Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled multiplayer in versions 1.16.4 and 1.16.5 #85

Closed
WinnLov opened this issue Jul 17, 2023 · 5 comments
Closed

Disabled multiplayer in versions 1.16.4 and 1.16.5 #85

WinnLov opened this issue Jul 17, 2023 · 5 comments

Comments

@WinnLov
Copy link

WinnLov commented Jul 17, 2023

As of snapshot 20w21a, two flags have been added, --disableChat and --disableMultiplayer. This allows multiplayer to work up to 1.16.3 and from 1.17 onwards, but in 1.16.4 and 1.16.5 multiplayer is disabled. 
The question of how to disable multiplayer simply by adding a flag to the startup arguments has already been raised, but I'm wondering if there is a way to disable or ignore the flag at startup so that multiplayer works on 1.16.4 and 1.16.5.
I've dug through a bunch of sources but haven't found a way to solve this problem, I realise that work on the project is now frozen, but maybe someone has been able to solve it or knows how to do it.
Thanks in advance :d
@Tartilla-TAIGO
Copy link
Contributor

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.

@Tartilla-TAIGO
Copy link
Contributor

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

@WinnLov
Copy link
Author

WinnLov commented Jul 17, 2023

Thanks, it looks like it really is an issue with authlib. Thanks again!

@WinnLov WinnLov closed this as completed Jul 17, 2023
@Tartilla-TAIGO
Copy link
Contributor

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

@AlphaBs
Copy link
Member

AlphaBs commented Aug 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@AlphaBs @WinnLov @Tartilla-TAIGO and others