Allow Forge detection with manual MC version (#1004)

This commit is contained in:
ORelio 2020-05-24 19:53:31 +02:00
parent 3996f72d23
commit b2bcfca8ec
3 changed files with 13 additions and 3 deletions

View file

@ -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;
}