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
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue