make timers run on all players

This commit is contained in:
XtraCube committed 2024-09-07 17:13:24 -04:00
1 parent 878cf15a20
commit 24ebee2743
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ public class ModifierComponent(IntPtr cppPtr) : MonoBehaviour(cppPtr)
Modifiers.Add(modifier);
modifier.OnActivate();
if (_player?.AmOwner == true && modifier is TimedModifier { AutoStart: true } timer)
if (modifier is TimedModifier { AutoStart: true } timer)
{
timer.StartTimer();
}
+1 -1
View File
@@ -53,7 +53,7 @@ public abstract class TimedModifier : BaseModifier
/// </summary>
public override void FixedUpdate()
{
if (Player?.AmOwner == false || !TimerActive)
if (!TimerActive)
{
return;
}