Test is first
This commit is contained in:
parent
4b20bfd11f
commit
e9170a96e4
@ -349,9 +349,9 @@ private void CheckIfIAmTheFirst(List<Player> players)
|
|||||||
if (players.Count > 1)
|
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;
|
isFirst = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user