From 4beb1016ccd7f3e59b052eb08b0166b16cf415de Mon Sep 17 00:00:00 2001 From: Winkarst <74284083+Winkarst-cpu@users.noreply.github.com> Date: Sat, 7 Dec 2024 00:39:35 +0300 Subject: [PATCH] Make unknown shuttle events trigger an announcement (#33450) * Make unknown shuttle events trigger an announcement * Call base at the end --------- Co-authored-by: Winkarst <74284083+Winkarst-cpu@users.noreply.github.co> --- Content.Server/GameTicking/Rules/LoadMapRuleSystem.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Content.Server/GameTicking/Rules/LoadMapRuleSystem.cs b/Content.Server/GameTicking/Rules/LoadMapRuleSystem.cs index d2686ecdcdd40d..f18115d3cf6b3e 100644 --- a/Content.Server/GameTicking/Rules/LoadMapRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/LoadMapRuleSystem.cs @@ -1,14 +1,14 @@ using Content.Server.GameTicking.Rules.Components; using Content.Server.GridPreloader; +using Content.Server.StationEvents.Events; using Content.Shared.GameTicking.Components; using Robust.Server.GameObjects; using Robust.Server.Maps; -using Robust.Shared.Map; using Robust.Shared.Prototypes; namespace Content.Server.GameTicking.Rules; -public sealed class LoadMapRuleSystem : GameRuleSystem +public sealed class LoadMapRuleSystem : StationEventSystem { [Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly MapSystem _map = default!; @@ -75,5 +75,7 @@ protected override void Added(EntityUid uid, LoadMapRuleComponent comp, GameRule var ev = new RuleLoadedGridsEvent(mapId, grids); RaiseLocalEvent(uid, ref ev); + + base.Added(uid, comp, rule, args); } }