Fix Packet Wrong

This commit is contained in:
2022-06-13 16:43:13 +08:00
parent e40735d2d3
commit 5a9f506597

View File

@ -45,9 +45,10 @@ func (p *Player) handlePlayerPosition(packet pk.Packet) error {
if !p.isSpawn {
// PlayerPositionAndRotation to confirm the spawn position
err = p.c.Conn.WritePacket(pk.Marshal(
packetid.ServerboundMoveVehicle,
packetid.ServerboundMovePlayerPosRot,
X, Y-1.62, Z,
Yaw, Pitch,
pk.Boolean(true),
))
if err != nil {
return Error{err}