Use packet queue for bot
framework.
Providing concurrently-safing for sending packets.
This commit is contained in:
@ -51,7 +51,7 @@ func (p *Player) Respawn() error {
|
||||
const PerformRespawn = 0
|
||||
|
||||
err := p.c.Conn.WritePacket(pk.Marshal(
|
||||
int32(packetid.ServerboundClientCommand),
|
||||
packetid.ServerboundClientCommand,
|
||||
pk.VarInt(PerformRespawn),
|
||||
))
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user