mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
make timers run on all players
This commit is contained in:
1 parent
878cf15a20
commit
24ebee2743
2 files changed
+2
-2
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public abstract class TimedModifier : BaseModifier
|
||||
/// </summary>
|
||||
public override void FixedUpdate()
|
||||
{
|
||||
if (Player?.AmOwner == false || !TimerActive)
|
||||
if (!TimerActive)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user