]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix: Radio jammer now doesn't show setting changes to other players (#32817)
authorbeck-thompson <107373427+beck-thompson@users.noreply.github.com>
Fri, 18 Oct 2024 10:04:45 +0000 (03:04 -0700)
committerGitHub <noreply@github.com>
Fri, 18 Oct 2024 10:04:45 +0000 (12:04 +0200)
* fix

* Other fix

Content.Shared/Radio/EntitySystems/SharedJammerSystem.cs

index 8c5baf93f5df409320a4b3897d8bc6b279ba5e9d..67af4cc900a5814fe2ea22896340e9906969c49a 100644 (file)
@@ -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),
             };