From 3a5f285fc5c7008ab7577a37b7653f3ada7eee5d Mon Sep 17 00:00:00 2001 From: Archangel Date: Wed, 5 Nov 2025 14:56:21 +0100 Subject: [PATCH] Add obsolete markers --- Libraries/SPTarkov.Reflection/Patching/ModPatchCache.cs | 3 +++ 1 file changed, 3 insertions(+) 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();