Skip to content

Commit

Permalink
Fix player rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Tides committed Nov 24, 2024
1 parent 8de7905 commit 867a154
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public partial class MovePlayerPosRotPacket
public override void Populate(INetStreamReader reader)
{
this.Position = reader.ReadAbsolutePositionF();
this.Yaw = reader.ReadAngle();
this.Pitch = reader.ReadAngle();
this.Yaw = reader.ReadFloat();
this.Pitch = reader.ReadFloat();
this.MovementFlags = reader.ReadSignedByte<MovementFlags>();
}

Expand Down
4 changes: 2 additions & 2 deletions Obsidian/Net/Packets/Play/Serverbound/MovePlayerRotPacket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public partial class MovePlayerRotPacket

public override void Populate(INetStreamReader reader)
{
this.Yaw = reader.ReadAngle();
this.Pitch = reader.ReadAngle();
this.Yaw = reader.ReadFloat();
this.Pitch = reader.ReadFloat();
this.MovementFlags = reader.ReadSignedByte<MovementFlags>();
}

Expand Down

0 comments on commit 867a154

Please sign in to comment.