Used IsSubclassOf instead

This commit is contained in:
David Higueros committed 2026-11-04 10:45:37 -07:00
1 parent 484a78c215
commit 5f4943f92a
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}