From 661f95bc68e2a268873590856b7f3edc8b2d28ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Schr=C3=B6dinger?= <132720404+Schrodinger71@users.noreply.github.com> Date: Fri, 31 May 2024 18:11:42 +0300 Subject: [PATCH 1/2] Update EntityHealthBarOverlay.cs --- Content.Client/Overlays/EntityHealthBarOverlay.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Content.Client/Overlays/EntityHealthBarOverlay.cs b/Content.Client/Overlays/EntityHealthBarOverlay.cs index 166ce00be24..7c5defcc884 100644 --- a/Content.Client/Overlays/EntityHealthBarOverlay.cs +++ b/Content.Client/Overlays/EntityHealthBarOverlay.cs @@ -76,9 +76,8 @@ protected override void Draw(in OverlayDrawArgs args) continue; } - GetStatusIconsEvent @event = new GetStatusIconsEvent(); - if (@event.InContainer || @event.HasStealthComponent) - { + if (_entManager.TryGetComponent(uid, out var comp) && comp.Enabled) + { continue; } From e8645d4cc6804082b2594b65e011c9739022e3b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Schr=C3=B6dinger?= <132720404+Schrodinger71@users.noreply.github.com> Date: Fri, 31 May 2024 18:19:08 +0300 Subject: [PATCH 2/2] =?UTF-8?q?=D0=B7=D0=B0=D0=B1=D1=8B=D0=BB=20using?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Client/Overlays/EntityHealthBarOverlay.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Content.Client/Overlays/EntityHealthBarOverlay.cs b/Content.Client/Overlays/EntityHealthBarOverlay.cs index 7c5defcc884..2390d7219e5 100644 --- a/Content.Client/Overlays/EntityHealthBarOverlay.cs +++ b/Content.Client/Overlays/EntityHealthBarOverlay.cs @@ -11,6 +11,8 @@ using Content.Client.UserInterface.Systems; using Robust.Shared.Prototypes; using static Robust.Shared.Maths.Color; +using Content.Shared.Stealth; +using Content.Shared.Stealth.Components; namespace Content.Client.Overlays;