From: beck-thompson <107373427+beck-thompson@users.noreply.github.com> Date: Fri, 18 Oct 2024 10:04:45 +0000 (-0700) Subject: Fix: Radio jammer now doesn't show setting changes to other players (#32817) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=338781c2434cf8cb63c57dd54dfa1f2b0e6bec2f;p=space-station-14.git Fix: Radio jammer now doesn't show setting changes to other players (#32817) * fix * Other fix --- 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), };