From 331dbad01771028df7261dd5ade0c189d15d3d2b Mon Sep 17 00:00:00 2001 From: Kill_Me_I_Noobs <118206719+Vonsant@users.noreply.github.com> Date: Thu, 2 May 2024 01:05:28 +0300 Subject: [PATCH] Update DeviceListSystem.cs --- Content.Server/DeviceNetwork/Systems/DeviceListSystem.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Content.Server/DeviceNetwork/Systems/DeviceListSystem.cs b/Content.Server/DeviceNetwork/Systems/DeviceListSystem.cs index f65a7c9aa84..c2b3c368f8c 100644 --- a/Content.Server/DeviceNetwork/Systems/DeviceListSystem.cs +++ b/Content.Server/DeviceNetwork/Systems/DeviceListSystem.cs @@ -8,6 +8,8 @@ using JetBrains.Annotations; using Robust.Shared.Map.Events; using Robust.Shared.GameObjects; +using Robust.Shared.GameStates; +using Robust.Shared.Timing; using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.IoC; @@ -26,7 +28,7 @@ public override void Initialize() SubscribeLocalEvent(OnBeforeBroadcast); SubscribeLocalEvent(OnBeforePacketSent); SubscribeLocalEvent(OnMapSave); - SubscribeLocalEvent(OnRoundEnd); + SubscribeLocalEvent(OnPostUpdate); SubscribeLocalEvent(OnDeviceListProcessed); } @@ -108,7 +110,7 @@ private void OnMapSave(BeforeSaveEvent ev) } } - private void OnRoundEnd(RoundEndTextEvent ev) + private void OnPostUpdate(PostUpdateEvent ev) { RaiseLocalEvent(new GenericEvent(DeviceListProcessedEvent)); }