Skip to content

Commit

Permalink
fix modifier related errors
Browse files Browse the repository at this point in the history
  • Loading branch information
XtraCube committed Dec 30, 2024
1 parent 786450c commit 7b51d9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MiraAPI/Modifiers/ModifierComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private void FixedUpdate()
{
if (_player?.AmOwner == true)
{
HudManager.Instance?.SetHudActive(HudManager.Instance.TaskPanel.isActiveAndEnabled);
HudManager.Instance?.SetHudActive(_player, _player.Data.Role, HudManager.Instance.TaskPanel.isActiveAndEnabled);
}
_toAdd.Clear();
_toRemove.Clear();
Expand Down
2 changes: 1 addition & 1 deletion MiraAPI/Patches/PlayerControlPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static class PlayerControlPatches
/// Adds the modifier component to the player on start.
/// </summary>
/// <param name="__instance">PlayerControl instance.</param>
[HarmonyPrefix]
[HarmonyPostfix]
[HarmonyPatch(nameof(PlayerControl.Start))]
public static void PlayerControlStartPostfix(PlayerControl __instance)
{
Expand Down

0 comments on commit 7b51d9b

Please sign in to comment.