Merge pull request #225 from Pokechu22/1.11.1-support

Add 1.11.1 support
This commit is contained in:
ORelio 2016-12-21 22:51:38 +01:00 committed by GitHub
commit e347ed7eb4
2 changed files with 4 additions and 2 deletions

View file

@ -22,7 +22,7 @@ namespace MinecraftClient
public const string Version = "1.11.0 DEV";
public const string MCLowestVersion = "1.4.6";
public const string MCHighestVersion = "1.11.0";
public const string MCHighestVersion = "1.11.1";
private static Thread offlinePrompt = null;
private static bool useMcVersionOnce = false;

View file

@ -108,7 +108,7 @@ namespace MinecraftClient.Protocol
int[] supportedVersions_Protocol16 = { 51, 60, 61, 72, 73, 74, 78 };
if (Array.IndexOf(supportedVersions_Protocol16, ProtocolVersion) > -1)
return new Protocol16Handler(Client, ProtocolVersion, Handler);
int[] supportedVersions_Protocol18 = { 4, 5, 47, 107, 108, 109, 110, 210, 315 };
int[] supportedVersions_Protocol18 = { 4, 5, 47, 107, 108, 109, 110, 210, 315, 316 };
if (Array.IndexOf(supportedVersions_Protocol18, ProtocolVersion) > -1)
return new Protocol18Handler(Client, ProtocolVersion, Handler, forgeInfo);
throw new NotSupportedException("The protocol version no." + ProtocolVersion + " is not supported.");
@ -181,6 +181,8 @@ namespace MinecraftClient.Protocol
case "1.11":
case "1.11.0":
return 315;
case "1.11.1":
return 316;
default:
return 0;
}