Skip to content

Commit

Permalink
use CustomStaminaStat
Browse files Browse the repository at this point in the history
  • Loading branch information
Misfiy committed Nov 23, 2024
1 parent 168b865 commit 903c2fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EXILED/Exiled.Events/Patches/Generic/FixStaminaStat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private static bool Prefix(FpcStateProcessor __instance, PlayerMovementState sta
return false;
}

stat.CurValue = stat.Clamp(__instance._stat.CurValue + (__instance.ServerRegenRate * Time.deltaTime));
stat.CurValue = stat.Clamp(stat.CurValue + (__instance.ServerRegenRate * Time.deltaTime));
__result = state;
return false;
}
Expand Down

0 comments on commit 903c2fb

Please sign in to comment.