Test is first

This commit is contained in:
Marine 2024-01-28 01:15:05 +01:00
parent 4b20bfd11f
commit e9170a96e4

View File

@ -349,9 +349,9 @@ private void CheckIfIAmTheFirst(List<Player> players)
if (players.Count > 1)
{
IOrderedEnumerable<Player> sortedList = players.OrderBy(x => x.creationDate);
List<Player> sortedList = players.OrderBy(x => x.creationDate).ToList();
if (sortedList.Last().id == currentPlayer.id)
if (sortedList[0].id == currentPlayer.id)
{
isFirst = true;
}