From f028b35ce2854bb538d0cd1dc829d7ef24726f1f Mon Sep 17 00:00:00 2001 From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Fri, 28 Apr 2023 23:14:15 -0400 Subject: [PATCH] Fix loneops (#15874) --- Content.Server/GameTicking/Rules/GameRuleSystem.cs | 2 +- Content.Server/StationEvents/Events/LoneOpsSpawnRule.cs | 3 +++ Resources/Prototypes/GameRules/events.yml | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Content.Server/GameTicking/Rules/GameRuleSystem.cs b/Content.Server/GameTicking/Rules/GameRuleSystem.cs index a55189d0f2..4f788e0052 100644 --- a/Content.Server/GameTicking/Rules/GameRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/GameRuleSystem.cs @@ -4,7 +4,7 @@ namespace Content.Server.GameTicking.Rules; public abstract class GameRuleSystem : EntitySystem where T : Component { - [Dependency] protected GameTicker GameTicker = default!; + [Dependency] protected readonly GameTicker GameTicker = default!; public override void Initialize() { diff --git a/Content.Server/StationEvents/Events/LoneOpsSpawnRule.cs b/Content.Server/StationEvents/Events/LoneOpsSpawnRule.cs index 57f0a2cbb6..8e1a2f3b3b 100644 --- a/Content.Server/StationEvents/Events/LoneOpsSpawnRule.cs +++ b/Content.Server/StationEvents/Events/LoneOpsSpawnRule.cs @@ -20,7 +20,10 @@ public sealed class LoneOpsSpawnRule : StationEventSystem