diff --git a/Barotrauma/BarotraumaServer/Source/GameMain.cs b/Barotrauma/BarotraumaServer/Source/GameMain.cs index f97944a3e..4ae2894b6 100644 --- a/Barotrauma/BarotraumaServer/Source/GameMain.cs +++ b/Barotrauma/BarotraumaServer/Source/GameMain.cs @@ -50,10 +50,9 @@ namespace Barotrauma public static HashSet SelectedPackages { - get { return Config.SelectedContentPackages; } + get { return Config?.SelectedContentPackages; } } - private static ContentPackage vanillaContent; public static ContentPackage VanillaContent { diff --git a/Barotrauma/BarotraumaShared/Source/GameSettings.cs b/Barotrauma/BarotraumaShared/Source/GameSettings.cs index 79f5a57c6..ed7c84adb 100644 --- a/Barotrauma/BarotraumaShared/Source/GameSettings.cs +++ b/Barotrauma/BarotraumaShared/Source/GameSettings.cs @@ -219,7 +219,7 @@ namespace Barotrauma set { TextManager.Language = value; } } - public HashSet SelectedContentPackages { get; set; } + public readonly HashSet SelectedContentPackages = new HashSet(); private HashSet selectedContentPackagePaths = new HashSet();