mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Add '/' as valid separator for detecting 1.8 proxies
Should work with "Requires 1.7/1.8 (protocol v4)" server info, reported by Yoann166.
This commit is contained in:
parent
c1d2cbd84c
commit
a0683e1c46
1 changed files with 1 additions and 1 deletions
|
|
@ -738,7 +738,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
protocolversion = atoi(jsonData.Properties["protocol"].StringValue);
|
protocolversion = atoi(jsonData.Properties["protocol"].StringValue);
|
||||||
|
|
||||||
//Automatic fix for BungeeCord 1.8 reporting itself as 1.7...
|
//Automatic fix for BungeeCord 1.8 reporting itself as 1.7...
|
||||||
if (protocolversion < 47 && version.Split(' ').Contains("1.8"))
|
if (protocolversion < 47 && version.Split(' ', '/').Contains("1.8"))
|
||||||
protocolversion = ProtocolHandler.MCVer2ProtocolVersion("1.8.0");
|
protocolversion = ProtocolHandler.MCVer2ProtocolVersion("1.8.0");
|
||||||
|
|
||||||
ConsoleIO.WriteLineFormatted("§8Server version : " + version + " (protocol v" + protocolversion + ").");
|
ConsoleIO.WriteLineFormatted("§8Server version : " + version + " (protocol v" + protocolversion + ").");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue