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

@ -245,9 +245,11 @@ namespace MinecraftClient
}
}
if (protocolversion == 0)
if (protocolversion == 0 || Settings.ServerMayHaveForge)
{
Console.WriteLine("Retrieving Server Info...");
if (protocolversion != 0)
Console.WriteLine("Checking if server is running Forge...");
else Console.WriteLine("Retrieving Server Info...");
if (!ProtocolHandler.GetServerInfo(Settings.ServerIP, Settings.ServerPort, ref protocolversion, ref forgeInfo))
{
HandleFailure("Failed to ping this IP.", true, ChatBots.AutoRelog.DisconnectReason.ConnectionLost);