update codecs

This commit is contained in:
2025-12-05 16:47:53 +08:00
parent d524687d51
commit 1718f54fb1
13 changed files with 372 additions and 378 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ func (b *botClient) HandleGame(ctx context.Context) error {
func (b *botClient) handshake(host string, port uint64) error {
return b.conn.WritePacket(pk.Marshal(
0,
pk.VarInt(772),
pk.VarInt(773),
pk.String(host),
pk.UnsignedShort(port),
pk.VarInt(2), // to game state