]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixs suffocation alerts not appearing. (#31115)
authorMervill <mervills.email@gmail.com>
Sat, 17 Aug 2024 02:02:51 +0000 (19:02 -0700)
committerGitHub <noreply@github.com>
Sat, 17 Aug 2024 02:02:51 +0000 (22:02 -0400)
Fixs suffocation alerts not appearing

Content.Server/Body/Systems/RespiratorSystem.cs

index 45074dc8260ce5e2c3361a92b22838121f78bf89..2854bbaeca1307279d4fd4658ff9a6ea20174db4 100644 (file)
@@ -290,7 +290,7 @@ public sealed class RespiratorSystem : EntitySystem
             var organs = _bodySystem.GetBodyOrganEntityComps<LungComponent>((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<LungComponent>((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);