mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-23 20:46:46 +00:00
add comment about meetinghud inline issue
This commit is contained in:
1 parent
24cdac0243
commit
a361afbcbf
1 file changed
+1
@@ -205,6 +205,7 @@ internal static class MeetingHudPatches
|
||||
// TODO: figure out a way to do host-authorization since right now any player can send RpcCastVote
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(nameof(MeetingHud.CmdCastVote))]
|
||||
// Although this method is inlined in MeetingHud.Confirm, the next patch fixes that.
|
||||
public static bool CmdCastVoteOverridePatch(MeetingHud __instance, byte playerId, byte suspectIdx)
|
||||
{
|
||||
VotingUtils.RpcCastVote(PlayerControl.LocalPlayer, playerId, suspectIdx);
|
||||
|
||||
Reference in new issue
Block a user