diff --git a/Libraries/SPTarkov.Reflection/Patching/ModPatchCache.cs b/Libraries/SPTarkov.Reflection/Patching/ModPatchCache.cs index c3dbda21..e99a4a10 100644 --- a/Libraries/SPTarkov.Reflection/Patching/ModPatchCache.cs +++ b/Libraries/SPTarkov.Reflection/Patching/ModPatchCache.cs @@ -3,6 +3,7 @@ namespace SPTarkov.Reflection.Patching; /// /// Cache of active patches for mod developers to use for compatibility reasons /// +[Obsolete("Patches will be injectable through IEnumerable in SPT 4.1, making this redundant")] public static class ModPatchCache { private static readonly List _activePatches = []; @@ -22,6 +23,7 @@ public static class ModPatchCache /// /// This should never be called before PreSptLoad is completed, otherwise could be empty. /// + [Obsolete("Patches will be injectable through IEnumerable in SPT 4.1, making this redundant")] public static IReadOnlyList GetActivePatches() { // We're not exposing _activePatches so it cant be altered outside of this class. Do NOT implement this as a property. @@ -38,6 +40,7 @@ public static class ModPatchCache /// /// This should never be called before PreSptLoad is completed, otherwise could be empty. /// + [Obsolete("Patches will be injectable through IEnumerable in SPT 4.1, making this redundant")] public static List GetActivePatchedMethodNames() { var result = new List();