diff --git a/MareSynchronosServer/MareSynchronosStaticFilesServer/Controllers/ServerFilesController.cs b/MareSynchronosServer/MareSynchronosStaticFilesServer/Controllers/ServerFilesController.cs index 97620f7..3534fb3 100644 --- a/MareSynchronosServer/MareSynchronosStaticFilesServer/Controllers/ServerFilesController.cs +++ b/MareSynchronosServer/MareSynchronosStaticFilesServer/Controllers/ServerFilesController.cs @@ -101,7 +101,8 @@ public class ServerFilesController : ControllerBase } var shard = selectedShards - .OrderBy(s => s.Continents.Contains("*", StringComparer.Ordinal) ? 0 : 1) + .OrderBy(s => !s.Continents.Any() ? 0 : 1) + .ThenBy(s => s.Continents.Contains("*", StringComparer.Ordinal) ? 0 : 1) .ThenBy(g => Guid.NewGuid()).FirstOrDefault(); baseUrl = shard?.CdnFullUrl ?? _configuration.GetValue(nameof(StaticFilesServerConfiguration.CdnFullUrl));