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,7 +398,12 @@ namespace MinecraftClient
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static void InitializeClient()
|
private static void InitializeClient()
|
||||||
{
|
{
|
||||||
InternalConfig.MinecraftVersion = Config.Main.Advanced.MinecraftVersion;
|
// 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();
|
SessionToken session = new();
|
||||||
PlayerKeyPair? playerKeyPair = null;
|
PlayerKeyPair? playerKeyPair = null;
|
||||||
|
|
@ -749,7 +754,7 @@ namespace MinecraftClient
|
||||||
if (InternalConfig.MinecraftVersion != "")
|
if (InternalConfig.MinecraftVersion != "")
|
||||||
{
|
{
|
||||||
useMcVersionOnce = true;
|
useMcVersionOnce = true;
|
||||||
Restart();
|
Restart(0, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue