Added 1.16(.1) support

This commit is contained in:
Bas950 2020-06-27 16:48:46 +02:00
parent a579b453b0
commit d06f14d055
3 changed files with 12 additions and 5 deletions

View file

@ -116,7 +116,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, 338, 340, 393, 401, 404, 477, 480, 485, 490, 498, 573, 575, 578};
int[] supportedVersions_Protocol18 = { 4, 5, 47, 107, 108, 109, 110, 210, 315, 316, 335, 338, 340, 393, 401, 404, 477, 480, 485, 490, 498, 573, 575, 578, 735, 736};
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.");
@ -223,6 +223,11 @@ namespace MinecraftClient.Protocol
return 575;
case "1.15.2":
return 578;
case "1.16":
case "1.16.1":
return 735;
case "1.16.1":
return 736;
default:
return 0;
}