Fixed wrong cast type

This commit is contained in:
David Higueros committed 2026-11-02 20:35:42 -07:00
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);
}