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 deltanedas
parent cbea74ff52
commit 160eadb9db
1 changed files with 2 additions and 2 deletions

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