fix: accept configuration code of conduct

Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/672da423-8a3f-412e-833d-a50c9a605b9d

Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-15 20:47:18 +00:00 committed by GitHub
parent c1635a999f
commit 4dbce45676
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);
SendPacket(ConfigurationPacketTypesOut.AcceptCodeOfConduct, new List<byte>());
break;
case ConfigurationPacketTypesIn.ServerLinks:
var cfgLinksCount = dataTypes.ReadNextVarInt(packetData);
for (var i = 0; i < cfgLinksCount; i++)