diff --git a/ASFFreeGames/Redlib/Instances/RedlibInstanceList.cs b/ASFFreeGames/Redlib/Instances/RedlibInstanceList.cs index fe89a4e..7ec6264 100644 --- a/ASFFreeGames/Redlib/Instances/RedlibInstanceList.cs +++ b/ASFFreeGames/Redlib/Instances/RedlibInstanceList.cs @@ -89,10 +89,10 @@ internal static List ParseUrls(JsonNode json) { return []; } - List uris = new(instances.AsArray().Count); + List uris = new(((JsonArray) instances).Count); // ReSharper disable once LoopCanBePartlyConvertedToQuery - foreach (JsonNode? instance in instances.AsArray()) { + foreach (JsonNode? instance in (JsonArray) instances) { JsonNode? url = instance?["url"]; if (Uri.TryCreate(url?.GetValue() ?? "", UriKind.Absolute, out Uri? instanceUri) && instanceUri.Scheme is "http" or "https") {