From edee101e6f6e47c1d1fdf55a86fbf5efc29426fe Mon Sep 17 00:00:00 2001 From: rhailrake <49613070+rhailrake@users.noreply.github.com> Date: Fri, 8 Sep 2023 18:30:08 +0600 Subject: [PATCH] fix (#374) --- Content.Server/Body/Systems/RespiratorSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Body/Systems/RespiratorSystem.cs b/Content.Server/Body/Systems/RespiratorSystem.cs index 3e0f1191a6..8155a3598e 100644 --- a/Content.Server/Body/Systems/RespiratorSystem.cs +++ b/Content.Server/Body/Systems/RespiratorSystem.cs @@ -99,7 +99,7 @@ namespace Content.Server.Body.Systems if (_gameTiming.CurTime >= respirator.LastGaspPopupTime + respirator.GaspPopupCooldown) { respirator.LastGaspPopupTime = _gameTiming.CurTime; - + if (TryComp(uid, out var metaDataComponent)) { _popupSystem.PopupEntity($"{metaDataComponent.EntityName} задыхается!", uid); @@ -257,7 +257,7 @@ namespace Content.Server.Body.Systems if (comp.CPRPerformedBy != null && comp.CPRPerformedBy != user) return false; - if (!TryComp(target, out _)) + if (!TryComp(target, out _) && !TryComp(user, out _)) return false; if (!TryComp(target, out MobStateComponent? targetState))