]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix communications console thinking it can announce in the first 5 seconds after...
authorqwerltaz <69696513+qwerltaz@users.noreply.github.com>
Fri, 18 Jul 2025 11:21:51 +0000 (13:21 +0200)
committerGitHub <noreply@github.com>
Fri, 18 Jul 2025 11:21:51 +0000 (13:21 +0200)
* init

* Revert "init"

This reverts commit 7bdeb355a75333c4cba29351eb1d93d428c84366.

* fair

Content.Server/Communications/CommunicationsConsoleSystem.cs

index 09dec3e23d16df2f35630aba0f06a1bb7968b72b..7d381f79efd18fa251715cf6664567bb7ef757e6 100644 (file)
@@ -42,7 +42,6 @@ namespace Content.Server.Communications
         {
             // All events that refresh the BUI
             SubscribeLocalEvent<AlertLevelChangedEvent>(OnAlertLevelChanged);
-            SubscribeLocalEvent<CommunicationsConsoleComponent, ComponentInit>((uid, comp, _) => UpdateCommsConsoleInterface(uid, comp));
             SubscribeLocalEvent<RoundEndSystemChangedEvent>(_ => OnGenericBroadcastEvent());
             SubscribeLocalEvent<AlertLevelDelayFinishedEvent>(_ => OnGenericBroadcastEvent());
 
@@ -85,6 +84,7 @@ namespace Content.Server.Communications
         public void OnCommunicationsConsoleMapInit(EntityUid uid, CommunicationsConsoleComponent comp, MapInitEvent args)
         {
             comp.AnnouncementCooldownRemaining = comp.InitialDelay;
+            UpdateCommsConsoleInterface(uid, comp);
         }
 
         /// <summary>