Regenerate files, moves packet id from data package

This commit is contained in:
Tnze
2021-02-18 21:29:16 +08:00
parent b4fc573118
commit ea0e0d1cae
19 changed files with 181 additions and 1379 deletions

View File

@ -10,7 +10,7 @@ import (
"net"
"strconv"
"github.com/Tnze/go-mc/data"
"github.com/Tnze/go-mc/data/packetid"
mcnet "github.com/Tnze/go-mc/net"
pk "github.com/Tnze/go-mc/net/packet"
)
@ -155,7 +155,7 @@ func (c *Client) Conn() *mcnet.Conn {
func (c *Client) SendMessage(msg string) error {
return c.conn.WritePacket(
pk.Marshal(
data.ChatServerbound,
packetid.ChatServerbound,
pk.String(msg),
),
)