Skip to content

Commit

Permalink
fix: Removed IsReady check
Browse files Browse the repository at this point in the history
  • Loading branch information
DHCPCD9 committed Feb 20, 2024
1 parent 5bacf87 commit e7e1868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nomia/NomiaExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void AddNode(NomiaNode nomiaNode)
/// <returns></returns>
public NomiaNode GetNode()
{
if (!Nodes.Any() || !Nodes.Any(c => c.IsReady)) throw new InvalidOperationException("No nodes are connected.");
if (!Nodes.Any()) throw new InvalidOperationException("No nodes are connected.");

return Nodes.Where(c => c.IsReady).OrderBy(x => x.Stats.PlayingPlayers).First();
}
Expand Down

0 comments on commit e7e1868

Please sign in to comment.