mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-11-19 13:17:10 +00:00
Fixed wrong cast type
This commit is contained in:
1 parent
9bb865bdf1
commit
355d6e63f0
1 file changed
+1
-1
@@ -78,7 +78,7 @@ public static class VanillaButtonPatches
|
||||
if (@event.IsCancelled)
|
||||
{
|
||||
var cancelEventType = typeof(VanillaButtonCancelledEvent<>).MakeGenericType(__instance.GetType());
|
||||
var cancelEvent = (MiraCancelableEvent)Activator.CreateInstance(cancelEventType, __instance)!;
|
||||
var cancelEvent = (MiraEvent)Activator.CreateInstance(cancelEventType, __instance)!;
|
||||
cancelEvent.InvokeEvent(cancelEventType);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user