Fix Packet Wrong
This commit is contained in:
@ -45,9 +45,10 @@ func (p *Player) handlePlayerPosition(packet pk.Packet) error {
|
|||||||
if !p.isSpawn {
|
if !p.isSpawn {
|
||||||
// PlayerPositionAndRotation to confirm the spawn position
|
// PlayerPositionAndRotation to confirm the spawn position
|
||||||
err = p.c.Conn.WritePacket(pk.Marshal(
|
err = p.c.Conn.WritePacket(pk.Marshal(
|
||||||
packetid.ServerboundMoveVehicle,
|
packetid.ServerboundMovePlayerPosRot,
|
||||||
X, Y-1.62, Z,
|
X, Y-1.62, Z,
|
||||||
Yaw, Pitch,
|
Yaw, Pitch,
|
||||||
|
pk.Boolean(true),
|
||||||
))
|
))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return Error{err}
|
return Error{err}
|
||||||
|
Reference in New Issue
Block a user