From 338781c2434cf8cb63c57dd54dfa1f2b0e6bec2f Mon Sep 17 00:00:00 2001 From: beck-thompson <107373427+beck-thompson@users.noreply.github.com> Date: Fri, 18 Oct 2024 03:04:45 -0700 Subject: [PATCH] Fix: Radio jammer now doesn't show setting changes to other players (#32817) * fix * Other fix --- .../Radio/EntitySystems/SharedJammerSystem.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Content.Shared/Radio/EntitySystems/SharedJammerSystem.cs b/Content.Shared/Radio/EntitySystems/SharedJammerSystem.cs index 8c5baf93f5..67af4cc900 100644 --- a/Content.Shared/Radio/EntitySystems/SharedJammerSystem.cs +++ b/Content.Shared/Radio/EntitySystems/SharedJammerSystem.cs @@ -42,10 +42,12 @@ public abstract class SharedJammerSystem : EntitySystem { entity.Comp.SelectedPowerLevel = currIndex; Dirty(entity); - if (_jammer.TrySetRange(entity.Owner, GetCurrentRange(entity))) - { - Popup.PopupPredicted(Loc.GetString(setting.Message), user, user); - } + + // If the jammer is off, this won't do anything which is fine. + // The range should be updated when it turns on again! + _jammer.TrySetRange(entity.Owner, GetCurrentRange(entity)); + + Popup.PopupClient(Loc.GetString(setting.Message), user, user); }, Text = Loc.GetString(setting.Name), }; -- 2.52.0