mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
Fix skip button being broken
This commit is contained in:
1 parent
06d62da24d
commit
4b7f17fa30
1 file changed
+1
-1
@@ -58,7 +58,7 @@ internal static class MeetingHudPatches
|
||||
return false;
|
||||
JudgeRole? judgeRole = PlayerControl.LocalPlayer.Data.Role.TryCast<JudgeRole>();
|
||||
bool flag = judgeRole && PlayerControl.LocalPlayer.PlayerId != __instance.PlayerId;
|
||||
__instance.JudgeOverruleButton.gameObject.SetActive(flag);
|
||||
__instance.JudgeOverruleButton?.gameObject.SetActive(flag);
|
||||
if (__instance.VoteComplete || !__instance.Parent.Select((byte) __instance.PlayerId))
|
||||
return false;
|
||||
__instance.Buttons.SetActive(true);
|
||||
|
||||
Reference in new issue
Block a user