Skip to content

Commit

Permalink
fix possible edge case concurrent issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyGalbreath committed Jan 30, 2024
1 parent 29c6a0a commit 89e1253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PlayerListHud.cs
Expand Up @@ -29,7 +29,7 @@ public class PlayerListHud : HudElement {
}

private void UpdateList(IPlayer? notUsed = null) {
List<IPlayer> players = capi.World.AllOnlinePlayers
List<IPlayer> players = capi.World.AllOnlinePlayers.ToArray()
.OrderBy(player => player.PlayerName)
.ToList();

Expand Down

0 comments on commit 89e1253

Please sign in to comment.