Fixs suffocation alerts not appearing. (#31115)
Fixs suffocation alerts not appearing
This commit is contained in:
parent
cbea74ff52
commit
160eadb9db
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue