Skip to content

Commit

Permalink
Make unknown shuttle events trigger an announcement (space-wizards#33450
Browse files Browse the repository at this point in the history
)

* Make unknown shuttle events trigger an announcement

* Call base at the end

---------

Co-authored-by: Winkarst <[email protected]>
  • Loading branch information
Winkarst-cpu and Winkarst authored Dec 6, 2024
1 parent 3300ff2 commit 4beb101
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Content.Server/GameTicking/Rules/LoadMapRuleSystem.cs
Original file line number Diff line number Diff line change
@@ -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<LoadMapRuleComponent>
public sealed class LoadMapRuleSystem : StationEventSystem<LoadMapRuleComponent>
{
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly MapSystem _map = default!;
Expand Down Expand Up @@ -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);
}
}

0 comments on commit 4beb101

Please sign in to comment.