From e7e1868964b07c52be86b7d017907cd1bf73faaa Mon Sep 17 00:00:00 2001 From: DHCPCD Date: Tue, 20 Feb 2024 16:37:04 +0100 Subject: [PATCH] fix: Removed IsReady check --- Nomia/NomiaExtension.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nomia/NomiaExtension.cs b/Nomia/NomiaExtension.cs index 1080e19..ca0657e 100644 --- a/Nomia/NomiaExtension.cs +++ b/Nomia/NomiaExtension.cs @@ -78,7 +78,7 @@ public void AddNode(NomiaNode nomiaNode) /// 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(); }