fix voting never ends bug

This commit is contained in:
XtraCube committed 2025-04-04 12:34:41 -04:00
1 parent e2f39c29a8
commit a651099217
1 file changed
+11
@@ -53,6 +53,17 @@ internal static class MeetingHudPatches
MiraEventManager.InvokeEvent(new VotingCompleteEvent(__instance));
}
[HarmonyPostfix]
[HarmonyPatch(nameof(MeetingHud.ForceSkipAll))]
public static void MeetingHudForceSkipAllPatch(MeetingHud __instance)
{
foreach (var plr in PlayerControl.AllPlayerControls)
{
var voteData = plr.GetVoteData();
voteData.SetRemainingVotes(0);
}
}
[HarmonyPrefix]
[HarmonyPatch(nameof(MeetingHud.Select))]
public static bool SelectPatch(MeetingHud __instance, int suspectStateIdx)