MCCTeam / Minecraft-Console-Client

Lightweight console for Minecraft chat and automated scripts
https://mccteam.github.io
Other
1.67k stars 402 forks source link

Fix general issues with logging in/relogging #2700

Closed breadbyte closed 8 months ago

breadbyte commented 8 months ago

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.

breadbyte commented 8 months ago

No issues have been reported by the reporter in the following days, merging