Fixs suffocation alerts not appearing. (#31115)

Fixs suffocation alerts not appearing
This commit is contained in:
Mervill
2024-08-16 19:02:51 -07:00
committed by GitHub
parent 3cf2fca993
commit 63762d85ca

View 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);