mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix Server Version prompt
Actually use the provided server version when reconnecting to a server that doesn't broadcast their protocol version
This commit is contained in:
parent
873bd79fd6
commit
c78245c056
1 changed files with 7 additions and 2 deletions
|
|
@ -398,6 +398,11 @@ namespace MinecraftClient
|
|||
/// </summary>
|
||||
private static void InitializeClient()
|
||||
{
|
||||
// Ensure that we use the provided Minecraft version if we can't connect automatically.
|
||||
//
|
||||
// useMcVersionOnce is set to true on HandleFailure()
|
||||
// whenever we are unable to connect to the server and the user provides a version number.
|
||||
if (!useMcVersionOnce)
|
||||
InternalConfig.MinecraftVersion = Config.Main.Advanced.MinecraftVersion;
|
||||
|
||||
SessionToken session = new();
|
||||
|
|
@ -749,7 +754,7 @@ namespace MinecraftClient
|
|||
if (InternalConfig.MinecraftVersion != "")
|
||||
{
|
||||
useMcVersionOnce = true;
|
||||
Restart();
|
||||
Restart(0, true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue