From 027d4763f3e1b44b484ab13d5957e169a2a67431 Mon Sep 17 00:00:00 2001 From: Atony <75191600+AtonyGit@users.noreply.github.com> Date: Sun, 30 Aug 2026 17:49:20 -0500 Subject: [PATCH] Expose vote methods for other mods --- MiraAPI/Voting/VotingUtils.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MiraAPI/Voting/VotingUtils.cs b/MiraAPI/Voting/VotingUtils.cs index 9744546..a1f989d 100644 --- a/MiraAPI/Voting/VotingUtils.cs +++ b/MiraAPI/Voting/VotingUtils.cs @@ -121,7 +121,7 @@ public static class VotingUtils CustomCastJudgeVote(srcPlayerId, suspectPlayerId, overruleNonce); } - private static void CustomCastJudgeVote(PlayerId judgePlayerId, PlayerId targetPlayerId, ushort overruleNonce) + public static void CustomCastJudgeVote(PlayerId judgePlayerId, PlayerId targetPlayerId, ushort overruleNonce) { var plr = GameData.Instance.GetPlayerById(judgePlayerId.Value); if (!plr) return; @@ -181,7 +181,7 @@ public static class VotingUtils CustomCastVote(srcPlayerId, suspectPlayerId); } - private static void CustomCastVote(byte srcPlayerId, byte suspectPlayerId) + public static void CustomCastVote(byte srcPlayerId, byte suspectPlayerId) { var plr = GameData.Instance.GetPlayerById(srcPlayerId); if (!plr) return;