Skip to content

Commit

Permalink
WriteAbsoluteShortPosition
Browse files Browse the repository at this point in the history
  • Loading branch information
Tides committed Nov 24, 2024
1 parent 37ecb65 commit 53af5cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Obsidian/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ await QueuePacketAsync(new PlayerPositionPacket

await Player.UpdateChunksAsync(distance: 7);
//await SendInfoAsync();
//await this.server.EventDispatcher.ExecuteEventAsync(new PlayerJoinEventArgs(Player, this.server, DateTimeOffset.Now));
await this.server.EventDispatcher.ExecuteEventAsync(new PlayerJoinEventArgs(Player, this.server, DateTimeOffset.Now));
}

#region Packet sending
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial class MoveEntityPosPacket
public override void Serialize(INetStreamWriter writer)
{
writer.WriteVarInt(this.EntityId);
writer.WriteAbsoluteFloatPosition(this.Delta);
writer.WriteAbsoluteShortPosition(this.Delta);
writer.WriteBoolean(this.OnGround);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public partial class MoveEntityPosRotPacket
public override void Serialize(INetStreamWriter writer)
{
writer.WriteVarInt(this.EntityId);
writer.WriteAbsoluteFloatPosition(this.Delta);
writer.WriteAbsoluteShortPosition(this.Delta);

writer.WriteByte(this.Yaw.Value);
writer.WriteByte(this.Pitch.Value);
Expand Down

0 comments on commit 53af5cb

Please sign in to comment.