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); }