mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-11-19 13:17:10 +00:00
Used IsSubclassOf instead
This commit is contained in:
1 parent
484a78c215
commit
5f4943f92a
1 file changed
+1
-1
@@ -106,7 +106,7 @@ public static class MiraEventManager
|
||||
|
||||
internal static bool RegisterEventType(Type eventType, MiraPluginInfo info)
|
||||
{
|
||||
if (!typeof(MiraEvent).IsAssignableFrom(eventType))
|
||||
if (!eventType.IsSubclassOf(typeof(MiraEvent)))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user