From 75bf7bc6e85615a6a76a6dbdb188fc9ce191b0fe Mon Sep 17 00:00:00 2001 From: Morb <14136326+Morb0@users.noreply.github.com> Date: Tue, 12 Sep 2023 01:59:48 +0300 Subject: [PATCH] Hide SSD indicator in containers (#20043) --- Content.Client/SSDIndicator/SSDIndicatorSystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Client/SSDIndicator/SSDIndicatorSystem.cs b/Content.Client/SSDIndicator/SSDIndicatorSystem.cs index dc7548f8e4..f30d565061 100644 --- a/Content.Client/SSDIndicator/SSDIndicatorSystem.cs +++ b/Content.Client/SSDIndicator/SSDIndicatorSystem.cs @@ -24,7 +24,9 @@ public sealed class SSDIndicatorSystem : EntitySystem private void OnGetStatusIcon(EntityUid uid, SSDIndicatorComponent component, ref GetStatusIconsEvent args) { - if (!component.IsSSD || !_cfg.GetCVar(CCVars.ICShowSSDIndicator)) + if (!component.IsSSD || + !_cfg.GetCVar(CCVars.ICShowSSDIndicator) || + args.InContainer) return; args.StatusIcons.Add(_prototype.Index(component.Icon)); -- 2.51.2