From: Perry Fraser Date: Sun, 11 Jan 2026 16:39:21 +0000 (-0500) Subject: fix: clear health bar/icon overlay damage containers on update (#39288) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=b707110dea2fb4cbb049a5a2ec4654573e55cb93;p=space-station-14.git fix: clear health bar/icon overlay damage containers on update (#39288) * fix: clear health overlay damage containers on update * linqn't * import --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --- diff --git a/Content.Client/Overlays/ShowHealthBarsSystem.cs b/Content.Client/Overlays/ShowHealthBarsSystem.cs index 9fefe93094..a25e08d1fe 100644 --- a/Content.Client/Overlays/ShowHealthBarsSystem.cs +++ b/Content.Client/Overlays/ShowHealthBarsSystem.cs @@ -1,8 +1,6 @@ using Content.Shared.Inventory.Events; using Content.Shared.Overlays; using Robust.Client.Graphics; -using System.Linq; -using Robust.Client.Player; using Robust.Shared.Prototypes; namespace Content.Client.Overlays; @@ -35,6 +33,9 @@ public sealed class ShowHealthBarsSystem : EquipmentHudSystem x.DamageContainers)) + DamageContainers.Clear(); + foreach (var comp in component.Components) { - DamageContainers.Add(damageContainerId); + foreach (var damageContainerId in comp.DamageContainers) + { + DamageContainers.Add(damageContainerId); + } } }