From: Mervill Date: Sat, 17 Aug 2024 02:02:51 +0000 (-0700) Subject: Fixs suffocation alerts not appearing. (#31115) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=63762d85ca4f68de70830dc4fd5daaa3065cc002;p=space-station-14.git Fixs suffocation alerts not appearing. (#31115) Fixs suffocation alerts not appearing --- diff --git a/Content.Server/Body/Systems/RespiratorSystem.cs b/Content.Server/Body/Systems/RespiratorSystem.cs index 45074dc826..2854bbaeca 100644 --- a/Content.Server/Body/Systems/RespiratorSystem.cs +++ b/Content.Server/Body/Systems/RespiratorSystem.cs @@ -290,7 +290,7 @@ public sealed class RespiratorSystem : EntitySystem var organs = _bodySystem.GetBodyOrganEntityComps((ent, null)); foreach (var entity in organs) { - _alertsSystem.ShowAlert(entity.Owner, entity.Comp1.Alert); + _alertsSystem.ShowAlert(ent, entity.Comp1.Alert); } } @@ -306,7 +306,7 @@ public sealed class RespiratorSystem : EntitySystem var organs = _bodySystem.GetBodyOrganEntityComps((ent, null)); foreach (var entity in organs) { - _alertsSystem.ClearAlert(entity.Owner, entity.Comp1.Alert); + _alertsSystem.ClearAlert(ent, entity.Comp1.Alert); } _damageableSys.TryChangeDamage(ent, ent.Comp.DamageRecovery);