diff --git a/AmongUs.props b/AmongUs.props index e0d7f3c..3c9899b 100644 --- a/AmongUs.props +++ b/AmongUs.props @@ -2,7 +2,7 @@ - + diff --git a/MiraAPI/Patches/IntroCutscenePatches.cs b/MiraAPI/Patches/IntroCutscenePatches.cs index d068f26..558a079 100644 --- a/MiraAPI/Patches/IntroCutscenePatches.cs +++ b/MiraAPI/Patches/IntroCutscenePatches.cs @@ -57,10 +57,15 @@ public static class IntroCutscenePatches } [HarmonyPostfix] - [HarmonyPatch(nameof(IntroCutscene.OnDestroy))] - public static void GameBeginPatch(IntroCutscene __instance) + [HarmonyPatch(typeof(IntroCutscene._CoBegin_d__34), nameof(IntroCutscene._CoBegin_d__34.MoveNext))] + public static void GameBeginPatch(IntroCutscene._CoBegin_d__34 __instance) { - MiraEventManager.InvokeEvent(new IntroEndEvent(__instance)); + if (__instance.__1__state != -1) + { + return; + } + + MiraEventManager.InvokeEvent(new IntroEndEvent(__instance.__4__this)); MiraEventManager.InvokeEvent(new RoundStartEvent(true)); } } diff --git a/nuget.config b/nuget.config index 06c3fec..2056a7c 100644 --- a/nuget.config +++ b/nuget.config @@ -6,5 +6,6 @@ + diff --git a/packages/AmongUs.GameLibs.Android.2025.4.20.nupkg b/packages/AmongUs.GameLibs.Android.2025.4.20.nupkg new file mode 100644 index 0000000..c13d668 Binary files /dev/null and b/packages/AmongUs.GameLibs.Android.2025.4.20.nupkg differ