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:
@@ -75,7 +75,7 @@ public class PatchManager
|
||||
|
||||
foreach (var type in assembly.GetTypes())
|
||||
{
|
||||
if (type.BaseType != baseType)
|
||||
if (!type.IsAssignableTo(baseType) || type.IsAbstract)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user