update example

This commit is contained in:
XtraCube committed 2025-03-23 14:00:12 -04:00
1 parent e9beb3b423
commit 2cfc5ac039
1 file changed
+2 -5
+2 -5
View File
@@ -38,12 +38,9 @@ public static class ExampleEventHandlers
[RegisterEvent]
public static void StartMeetingEvent(StartMeetingEvent _)
{
foreach (var plr in PlayerControl.AllPlayerControls)
foreach (var plr in PlayerControl.AllPlayerControls.ToArray().Where(player => player.Data.Role is MayorRole))
{
if (plr.Data.Role is MayorRole)
{
plr.GetVoteData().IncreaseRemainingVotes(1);
}
plr.GetVoteData().IncreaseRemainingVotes(1);
}
}