Upgrade protocol to 1.19.3

This commit is contained in:
ReinforceZwei 2023-01-10 18:27:48 +08:00
parent f3b50738f1
commit 657fc6117b
4 changed files with 41 additions and 32 deletions

View file

@ -134,7 +134,7 @@ namespace MinecraftClient.Protocol
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, 735, 736, 751, 753, 754, 755, 756, 757, 758, 759, 760 };
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, 751, 753, 754, 755, 756, 757, 758, 759, 760, 761 };
if (Array.IndexOf(supportedVersions_Protocol18, ProtocolVersion) > -1)
return new Protocol18Handler(Client, ProtocolVersion, Handler, forgeInfo);
@ -313,6 +313,8 @@ namespace MinecraftClient.Protocol
case "1.19.1":
case "1.19.2":
return 760;
case "1.19.3":
return 761;
default:
return 0;
}
@ -389,6 +391,7 @@ namespace MinecraftClient.Protocol
case 758: return "1.18.2";
case 759: return "1.19";
case 760: return "1.19.2";
case 761: return "1.19.3";
default: return "0.0";
}
}