Fix: Radio jammer now doesn't show setting changes to other players (#32817)
* fix * Other fix
This commit is contained in:
@@ -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),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user