Closes #2691, hopefully, by having AutoRelog handle reconnecting when it is enabled.
When it is disabled, it reverts to the basic reconnection handler found in McClient.
Also fixes the following issues:
Overriding the version when joining a server that does not broadcast it's protocol version (i.e. a Minecraft server with Query/Server List Ping disabled, or a server behind ViaVersion (always returns protocol version -1)).
It started ignoring the version that was typed in the console and started prioritizing the version in the config.
Commit c78245c fixes that by passing parameters to the restart functions being called, and utilizing variables that are supposed to be used for this reason, that was somehow no longer being used.
Offline client reconnects by authenticating with Mojang
Happened while testing the original issue, doing /reco during the restart handler seemed to authenticate with Mojang using offline credentials.
This has been fixed by adding a check for an empty string in the offline authentication logic.
Closes #2691, hopefully, by having AutoRelog handle reconnecting when it is enabled. When it is disabled, it reverts to the basic reconnection handler found in
McClient
.Also fixes the following issues:
It started ignoring the version that was typed in the console and started prioritizing the version in the config. Commit c78245c fixes that by passing parameters to the restart functions being called, and utilizing variables that are supposed to be used for this reason, that was somehow no longer being used.
Happened while testing the original issue, doing
/reco
during the restart handler seemed to authenticate with Mojang using offline credentials. This has been fixed by adding a check for an empty string in the offline authentication logic.