acknowledge configuration packet before invoking configuration method

This commit is contained in:
2025-08-27 22:00:10 +08:00
parent 80296505e7
commit 3bd5a47e80

View File

@ -158,7 +158,11 @@ func (b *botClient) handlePackets(ctx context.Context) error {
}
pktID := packetid.ClientboundPacketID(p.ID)
if pktID == packetid.ClientboundStartConfiguration {
err := b.configuration()
err := b.conn.WritePacket(pk.Marshal(packetid.ServerboundConfigurationAcknowledged))
if err != nil {
return err
}
err = b.configuration()
if err != nil {
return err
}