Fix duplicated Populate Results Event

This commit is contained in:
Atony committed 2026-07-09 23:03:02 -05:00
1 parent 662b52f78d
commit 9d7e41a3c9
1 file changed
-7
@@ -208,13 +208,6 @@ internal static class MeetingHudPatches
public static bool PopulateResultsPatch(MeetingHud __instance, ref Il2CppStructArray<MeetingHud.VoterState> states)
{
var votes = states.Select(x=> new CustomVote(x.VoterId, x.VotedForId)).ToList();
var @event = new PopulateResultsEvent(votes);
MiraEventManager.InvokeEvent(@event);
if (@event.IsCancelled)
{
return false;
}
VotingUtils.HandlePopulateResults(votes);
return false;