Browse Source

Allow plugin polymorphism

Bepis 6 năm trước cách đây
mục cha
commit
e730edb2ae
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      BepInEx/Bootstrap/TypeLoader.cs

+ 1 - 1
BepInEx/Bootstrap/TypeLoader.cs

@@ -32,7 +32,7 @@ namespace BepInEx.Bootstrap
 
 					foreach (Type type in assembly.GetTypes())
 					{
-						if (!type.IsInterface && !type.IsAbstract && type.BaseType == pluginType)
+						if (!type.IsInterface && !type.IsAbstract && pluginType.IsAssignableFrom(type))
 							types.Add(type);
 					}
 				}