From 23e5f8f57acf62b8365a633dd8a6bf9710ae4a30 Mon Sep 17 00:00:00 2001 From: qe201020335 <31044781+qe201020335@users.noreply.github.com> Date: Sun, 21 Sep 2025 06:44:51 -0400 Subject: [PATCH] Fix PatchManager only finding patch types directly inheriting AbstractPatch (#592) Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com> --- Libraries/SPTarkov.Reflection/Patching/PatchManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/SPTarkov.Reflection/Patching/PatchManager.cs b/Libraries/SPTarkov.Reflection/Patching/PatchManager.cs index 2c19a925..76fcb470 100644 --- a/Libraries/SPTarkov.Reflection/Patching/PatchManager.cs +++ b/Libraries/SPTarkov.Reflection/Patching/PatchManager.cs @@ -75,7 +75,7 @@ public class PatchManager foreach (var type in assembly.GetTypes()) { - if (type.BaseType != baseType) + if (!type.IsAssignableTo(baseType) || type.IsAbstract) { continue; }