Fix PatchManager only finding patch types directly inheriting AbstractPatch (#592)

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
This commit is contained in:
qe201020335
2025-09-21 06:44:51 -04:00
committed by GitHub
parent ecedd57774
commit 23e5f8f57a
@@ -75,7 +75,7 @@ public class PatchManager
foreach (var type in assembly.GetTypes())
{
if (type.BaseType != baseType)
if (!type.IsAssignableTo(baseType) || type.IsAbstract)
{
continue;
}