Preliminary 1.21 Support

This commit is contained in:
Anon 2024-12-06 16:45:48 +01:00
parent 7bd213a154
commit f83e7c5707
18 changed files with 588 additions and 55 deletions

View file

@ -10,6 +10,12 @@ namespace MinecraftClient.Protocol.Handlers.packet.s2c
public static void Read(DataTypes dataTypes, Queue<byte> packetData, int protocolVersion)
{
// TODO: Fix this
// It crashes in 1.20.6+ , could not figure out why
// it's hard to debug, so I'll just disable it for now
if(protocolVersion > Protocol18Handler.MC_1_20_4_Version)
return;
int count = dataTypes.ReadNextVarInt(packetData);
Nodes = new CommandNode[count];
for (int i = 0; i < count; ++i)