From 1fd31beb0542b6d66bc53d1c1abf63ce9675e5ec Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sun, 26 Jan 2020 15:40:00 -0600 Subject: [PATCH] fix another meme --- Application/ApplicationManager.cs | 2 +- SharedLibraryCore/Configuration/ServerConfiguration.cs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Application/ApplicationManager.cs b/Application/ApplicationManager.cs index 7847871db..86f39c9f1 100644 --- a/Application/ApplicationManager.cs +++ b/Application/ApplicationManager.cs @@ -293,7 +293,7 @@ namespace IW4MAdmin.Application serverConfig.AddEventParser(parser); } - newConfig.Servers = newConfig.Servers.Append((ServerConfiguration)serverConfig.Generate()).ToArray(); + newConfig.Servers = newConfig.Servers.Where(_servers => _servers != null).Append((ServerConfiguration)serverConfig.Generate()).ToArray(); } while (Utilities.PromptBool(Utilities.CurrentLocalization.LocalizationIndex["SETUP_SERVER_SAVE"])); config = newConfig; diff --git a/SharedLibraryCore/Configuration/ServerConfiguration.cs b/SharedLibraryCore/Configuration/ServerConfiguration.cs index afb18630c..1e09bb3f3 100644 --- a/SharedLibraryCore/Configuration/ServerConfiguration.cs +++ b/SharedLibraryCore/Configuration/ServerConfiguration.cs @@ -31,9 +31,6 @@ namespace SharedLibraryCore.Configuration [ConfigurationOptional] public Uri GameLogServerUrl { get; set; } - [ConfigurationIgnore] - public int Index { get; set; } - private readonly IList rconParsers; private readonly IList eventParsers;