mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
fix timed modifier auto removing if AutoStart is false
This commit is contained in:
1 parent
2f7cf4d664
commit
878cf15a20
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user