diff --git a/TShockAPI/Configuration/ConfigFile.cs b/TShockAPI/Configuration/ConfigFile.cs index 4a72a4ee..de0da0fe 100644 --- a/TShockAPI/Configuration/ConfigFile.cs +++ b/TShockAPI/Configuration/ConfigFile.cs @@ -8,12 +8,12 @@ namespace TShockAPI.Configuration /// Implements to provide a generic config file containing some settings /// /// - public class ConfigFile : IConfigFile + public class ConfigFile : IConfigFile where TSettings : new() { /// /// Settings managed by this config file /// - public virtual TSettings Settings { get; set; } + public virtual TSettings Settings { get; set; } = new TSettings(); /// /// Action invoked when the config file is read diff --git a/TShockAPI/Configuration/ServerSideConfig.cs b/TShockAPI/Configuration/ServerSideConfig.cs index cea8721e..d80e4bac 100644 --- a/TShockAPI/Configuration/ServerSideConfig.cs +++ b/TShockAPI/Configuration/ServerSideConfig.cs @@ -73,11 +73,6 @@ namespace TShockAPI.Configuration /// public class ServerSideConfig : ConfigFile { - /// - /// Settings managed by this configuration object - /// - public override SscSettings Settings { get; set; } = new SscSettings(); - /// /// Dumps all configuration options to a text file in Markdown format /// diff --git a/TShockAPI/Configuration/TShockConfig.cs b/TShockAPI/Configuration/TShockConfig.cs index 751873d0..332b58ba 100644 --- a/TShockAPI/Configuration/TShockConfig.cs +++ b/TShockAPI/Configuration/TShockConfig.cs @@ -592,11 +592,6 @@ namespace TShockAPI.Configuration /// public class TShockConfig : ConfigFile { - /// - /// TShock settings managed by this configuration object - /// - public override TShockSettings Settings { get; set; } = new TShockSettings(); - /// /// Upgrades the configuration file from the old format if required, then reads and returns the currently configured ///