Implement 1.12.1 protocol

This commit is contained in:
Pokechu22 2017-08-01 10:34:16 -07:00 committed by ORelio
parent 933a02800a
commit fd2e3d5797
3 changed files with 46 additions and 5 deletions

View file

@ -106,7 +106,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, 316, 335 };
int[] supportedVersions_Protocol18 = { 4, 5, 47, 107, 108, 109, 110, 210, 315, 316, 335, 338 };
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.");
@ -185,6 +185,8 @@ namespace MinecraftClient.Protocol
case "1.12":
case "1.12.0":
return 335;
case "1.12.1":
return 338;
default:
return 0;
}