From: Simon <63975668+Simyon264@users.noreply.github.com> Date: Mon, 13 Nov 2023 22:43:08 +0000 (+0100) Subject: the voices don't stop (fix pda ring) (#21640) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=7d92125343350f152aca65ab385fd3ac1b55bc1d;p=space-station-14.git the voices don't stop (fix pda ring) (#21640) --- diff --git a/Content.Server/MassMedia/Systems/NewsSystem.cs b/Content.Server/MassMedia/Systems/NewsSystem.cs index 93663474ac..a36d8b0afd 100644 --- a/Content.Server/MassMedia/Systems/NewsSystem.cs +++ b/Content.Server/MassMedia/Systems/NewsSystem.cs @@ -207,7 +207,8 @@ public sealed class NewsSystem : EntitySystem while (query.MoveNext(out var uid, out var comp, out var ringer, out var cont)) { - if (!_cartridgeLoaderSystem.HasProgram(uid, false, comp, cont)) + if (!_cartridgeLoaderSystem.TryGetProgram(uid, out _, out var newsReadCartridgeComponent, false, comp, cont) + || !newsReadCartridgeComponent.NotificationOn) continue; _ringer.RingerPlayRingtone(uid, ringer);