mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-27 23:44:35 +00:00
fix voting never ends bug
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user