From 355d6e63f01b58a69eb971524e35bbbb0c00541e Mon Sep 17 00:00:00 2001 From: David Higueros <111460331+TheDavSmasher@users.noreply.github.com> Date: Mon, 2 Nov 2026 20:35:42 -0700 Subject: [PATCH] Fixed wrong cast type --- MiraAPI/Patches/Events/VanillaButtonPatches.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MiraAPI/Patches/Events/VanillaButtonPatches.cs b/MiraAPI/Patches/Events/VanillaButtonPatches.cs index 2eb06543..3b882da7 100644 --- a/MiraAPI/Patches/Events/VanillaButtonPatches.cs +++ b/MiraAPI/Patches/Events/VanillaButtonPatches.cs @@ -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); }