Implemented 1.19.4, first pass, light testing

This commit is contained in:
Anon 2023-03-21 20:28:05 +01:00
parent e44ade8688
commit 5d4ea515a7
6 changed files with 250 additions and 9 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, 761 };
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, 762 };
if (Array.IndexOf(supportedVersions_Protocol18, ProtocolVersion) > -1)
return new Protocol18Handler(Client, ProtocolVersion, Handler, forgeInfo);
@ -315,6 +315,8 @@ namespace MinecraftClient.Protocol
return 760;
case "1.19.3":
return 761;
case "1.19.4":
return 762;
default:
return 0;
}
@ -392,6 +394,7 @@ namespace MinecraftClient.Protocol
case 759: return "1.19";
case 760: return "1.19.2";
case 761: return "1.19.3";
case 762: return "1.19.4";
default: return "0.0";
}
}