GameTicker upstream fix

StationEvents
This commit is contained in:
Dmitry 2026-09-20 03:12:58 +07:00
parent cb9bcf9528
commit 5ea431e0e0
2 changed files with 9 additions and 0 deletions

View file

@ -135,6 +135,11 @@ namespace Content.Server.StationEvents.Events
// Can't use the default EndAudio
rule.Comp.AnnounceCancelToken?.Cancel();
// Corvax-Announcements-fix временная заплатка, удалить после реворка https://github.com/space-wizards/space-station-14/issues/46073
if (MetaData(rule).EntityLifeStage >= EntityLifeStage.Terminating)
return;
rule.Comp.AnnounceCancelToken = new CancellationTokenSource();
Timer.Spawn(3000,
() =>

View file

@ -78,6 +78,10 @@ public abstract partial class StationEventSystem<T> : GameRuleSystem<T> where T
AdminLogManager.Add(LogType.EventStopped, $"Event ended: {ToPrettyString(rule)}");
// Corvax-Announcements-fix временная заплатка, удалить после реворка https://github.com/space-wizards/space-station-14/issues/46073
if (MetaData(rule).EntityLifeStage >= EntityLifeStage.Terminating)
return;
// we don't want to send to players who aren't in game (i.e. in the lobby)
Filter allPlayersInGame = Filter.Empty().AddWhere(GameTicker.UserHasJoinedGame);