fix timed modifier auto removing if AutoStart is false

This commit is contained in:
XtraCube committed 2024-09-07 16:47:52 -04:00
1 parent 2f7cf4d664
commit 878cf15a20
1 file changed
+2 -2
+2 -2
View File
@@ -53,12 +53,12 @@ public abstract class TimedModifier : BaseModifier
/// </summary>
public override void FixedUpdate()
{
if (Player?.AmOwner == false)
if (Player?.AmOwner == false || !TimerActive)
{
return;
}
if (TimeRemaining > 0 && TimerActive)
if (TimeRemaining > 0)
{
TimeRemaining -= Time.fixedDeltaTime;
}