Update packetid name

This commit is contained in:
Tnze
2021-12-09 20:24:39 +08:00
parent 805ca37a67
commit 0cc5695aa3
15 changed files with 203 additions and 474 deletions

View File

@ -68,7 +68,7 @@ func onGameStart() error {
}
var soundListener = bot.PacketHandler{
ID: packetid.SoundEffect,
ID: packetid.ClientboundSound,
Priority: 0,
F: func(p pk.Packet) error {
var (
@ -86,7 +86,7 @@ var soundListener = bot.PacketHandler{
func UseItem(hand int32) error {
return c.Conn.WritePacket(pk.Marshal(
packetid.UseItem,
packetid.ServerboundUseItem,
pk.VarInt(hand),
))
}