Update packetid.go

This commit is contained in:
Tnze
2021-12-10 19:53:42 +08:00
parent 40151f803b
commit ef1fabe9c5
3 changed files with 16 additions and 10 deletions

View File

@ -97,7 +97,7 @@ func pingAndList(addr string, conn *mcnet.Conn) ([]byte, time.Duration, error) {
//PING
startTime := time.Now()
err = conn.WritePacket(pk.Marshal(
packetid.StatusPing,
packetid.StatusPingRequest,
pk.Long(startTime.Unix()),
))
if err != nil {