feat: Handle configuration-state code-of-conduct packets on 1.21.9+ servers

This commit is contained in:
Anon 2026-04-15 22:57:27 +02:00 committed by GitHub
commit 2bccb7f8e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -623,6 +623,11 @@ namespace MinecraftClient.Protocol.Handlers
}
break;
case ConfigurationPacketTypesIn.CodeOfConduct:
dataTypes.ReadNextString(packetData); // Code of conduct text
SendPacket(ConfigurationPacketTypesOut.AcceptCodeOfConduct, new List<byte>());
break;
case ConfigurationPacketTypesIn.ServerLinks:
var cfgLinksCount = dataTypes.ReadNextVarInt(packetData);
for (var i = 0; i < cfgLinksCount; i++)