mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-11-19 13:17:10 +00:00
Used as extension method
This commit is contained in:
1 parent
6fce7b20b3
commit
6a25793599
2 files changed
+2
-2
No files matched your search
@@ -37,7 +37,7 @@ public static class MiraEventManager
|
||||
public static bool InvokeEvent<T>(this T eventInstance)
|
||||
where T : MiraEvent
|
||||
{
|
||||
return InvokeEvent(eventInstance, typeof(T));
|
||||
return eventInstance.InvokeEvent(typeof(T));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -107,7 +107,7 @@ internal static class MeetingHudPatches
|
||||
public static void OnDestroyPatch(MeetingHud __instance)
|
||||
{
|
||||
MeetingVoteAreaVisibility.RestoreAll();
|
||||
MiraEventManager.InvokeEvent(new EndMeetingEvent(__instance));
|
||||
new EndMeetingEvent(__instance).InvokeEvent();
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
|
||||
Reference in new issue
Block a user