Skip to content

Commit

Permalink
im dumb lol, wrong harmony patch
Browse files Browse the repository at this point in the history
used the wrong tags, pepega
  • Loading branch information
xAstroBoy authored Feb 3, 2024
1 parent ee2806a commit 3d77862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lc-hax/Scripts/Patches/VoteShipLeaveEarlyPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class VoteShipLeaveEarlyPatch {

[HarmonyPatch(typeof(HUDManager), "Update")]
[HarmonyPostfix]
[HarmonyPrefix]
static void BlockVoteEarlyHud(ref float ___holdButtonToEndGameEarlyHoldTime, ref UnityEngine.UI.Image ___holdButtonToEndGameEarlyMeter) {
if (PossessionMod.Instance == null) return;
if (PossessionMod.Instance.IsPossessed) {
Expand All @@ -16,7 +16,7 @@ static void BlockVoteEarlyHud(ref float ___holdButtonToEndGameEarlyHoldTime, ref
}

[HarmonyPatch(typeof(TimeOfDay), nameof(TimeOfDay.VoteShipToLeaveEarly))]
[HarmonyPostfix]
[HarmonyPrefix]
static bool BlockVoteEarlyRPC() {
return PossessionMod.Instance == null ? true : !PossessionMod.Instance.IsPossessed;
}
Expand Down

0 comments on commit 3d77862

Please sign in to comment.