mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Allow Forge detection with manual MC version (#1004)
This commit is contained in:
parent
3996f72d23
commit
b2bcfca8ec
3 changed files with 13 additions and 3 deletions
|
|
@ -88,7 +88,12 @@ namespace MinecraftClient.Protocol
|
|||
}
|
||||
}, TimeSpan.FromSeconds(Settings.ResolveSrvRecordsShortTimeout ? 10 : 30)))
|
||||
{
|
||||
protocolversion = protocolversionTmp;
|
||||
if (protocolversion != 0 && protocolversion != protocolversionTmp)
|
||||
ConsoleIO.WriteLineFormatted("§8Server reports a different version than manually set. Login may not work.");
|
||||
if (protocolversion == 0 && protocolversionTmp == 0)
|
||||
ConsoleIO.WriteLineFormatted("§8Server does not report its protocol version, autodetection will not work.");
|
||||
if (protocolversion == 0)
|
||||
protocolversion = protocolversionTmp;
|
||||
forgeInfo = forgeInfoTmp;
|
||||
return success;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue