Improved ConfigServer obsolete messages

This commit is contained in:
Chomp
2026-03-02 17:36:33 +00:00
parent b8f9ab8646
commit 2891fd41fd
@@ -10,7 +10,7 @@ using LogLevel = SPTarkov.Server.Core.Models.Spt.Logging.LogLevel;
namespace SPTarkov.Server.Core.Servers; namespace SPTarkov.Server.Core.Servers;
[Injectable(InjectionType.Singleton)] [Injectable(InjectionType.Singleton)]
[Obsolete("This class will be removed in SPT 4.2 in favor for directly injecting the configuration into classes")] [Obsolete("This class will be removed in SPT 4.1 in favor for directly injecting the configuration into classes")]
public class ConfigServer public class ConfigServer
{ {
protected readonly FrozenSet<string> acceptableFileExtensions = ["json", "jsonc"]; protected readonly FrozenSet<string> acceptableFileExtensions = ["json", "jsonc"];
@@ -31,7 +31,7 @@ public class ConfigServer
} }
} }
[Obsolete("This method will be removed in SPT 4.2 in favor for directly injecting the configuration into classes")] [Obsolete("This method will be removed in SPT 4.1 in favor for directly injecting the configuration into classes")]
public T GetConfig<T>() public T GetConfig<T>()
where T : BaseConfig where T : BaseConfig
{ {