Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonpro03 committed May 28, 2023
1 parent 261d3b5 commit 257f5a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Obsidian/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ await QueuePacketAsync(new LoginSuccess(Player.Uuid, Player.Username)

await SendPlayerListDecoration();
await SendPlayerInfoAsync();
while (!await Player.UpdateChunksAsync(distance: 7)) { Thread.Sleep(1); }
await Player.UpdateChunksAsync(distance: 7);
await SendInfoAsync();
await Server.Events.InvokePlayerJoinAsync(new PlayerJoinEventArgs(Player, DateTimeOffset.Now));
}
Expand Down
2 changes: 1 addition & 1 deletion Obsidian/Entities/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ private async Task PickupNearbyItemsAsync(float distance = 0.5f)
/// </summary>
/// <param name="unloadAll"></param>
/// <param name="distance"></param>
/// <returns></returns>
/// <returns>Whether all chunks have been sent.</returns>
internal async Task<bool> UpdateChunksAsync(bool unloadAll = false, int distance = 0)
{
bool sentAll = true;
Expand Down

0 comments on commit 257f5a2

Please sign in to comment.