From 1a3ce6cf2c50d59e91f682011f58e3345f48e86e Mon Sep 17 00:00:00 2001 From: nikthechampiongr <32041239+nikthechampiongr@users.noreply.github.com> Date: Fri, 9 Feb 2024 01:12:04 +0200 Subject: [PATCH] Fix brig timer labels to displaying correctly. (#25033) * Fix brig timer labels to displaying correctly. The TextScreenSystem was expecting a string, but the value inputted for the label was an array of strings. * Address nitpick This should do the exact same thing but it is semantically clearer I guess. --- Content.Server/DeviceLinking/Systems/SignalTimerSystem.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Server/DeviceLinking/Systems/SignalTimerSystem.cs b/Content.Server/DeviceLinking/Systems/SignalTimerSystem.cs index 0426ee7cc3..f9c2d3430e 100644 --- a/Content.Server/DeviceLinking/Systems/SignalTimerSystem.cs +++ b/Content.Server/DeviceLinking/Systems/SignalTimerSystem.cs @@ -68,7 +68,7 @@ public sealed class SignalTimerSystem : EntitySystem if (TryComp(uid, out var appearance)) { - _appearanceSystem.SetData(uid, TextScreenVisuals.ScreenText, new[] { signalTimer.Label }, appearance); + _appearanceSystem.SetData(uid, TextScreenVisuals.ScreenText, signalTimer.Label, appearance); } _audio.PlayPvs(signalTimer.DoneSound, uid); @@ -142,7 +142,7 @@ public sealed class SignalTimerSystem : EntitySystem component.Label = args.Text[..Math.Min(5, args.Text.Length)]; if (!HasComp(uid)) - _appearanceSystem.SetData(uid, TextScreenVisuals.ScreenText, new string?[] { component.Label }); + _appearanceSystem.SetData(uid, TextScreenVisuals.ScreenText, component.Label); } /// @@ -186,7 +186,7 @@ public sealed class SignalTimerSystem : EntitySystem if (appearance != null) { _appearanceSystem.SetData(uid, TextScreenVisuals.TargetTime, timer.TriggerTime, appearance); - _appearanceSystem.SetData(uid, TextScreenVisuals.ScreenText, new string?[] { }, appearance); + _appearanceSystem.SetData(uid, TextScreenVisuals.ScreenText, string.Empty, appearance); } _signalSystem.InvokePort(uid, component.StartPort);