From: c4llv07e <38111072+c4llv07e@users.noreply.github.com> Date: Wed, 28 Feb 2024 22:09:02 +0000 (+0300) Subject: Fix cryostorage removing minds of players who have entered ghost role (#24991) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=ee614dec5c412cf5d155303db5ade1cd33fc0c12;p=space-station-14.git Fix cryostorage removing minds of players who have entered ghost role (#24991) * fix cryo removed minds of players who entered ghost role Signed-off-by: c4llv07e * better way to handle cryo with mind in it Signed-off-by: c4llv07e --------- Signed-off-by: c4llv07e --- diff --git a/Content.Server/Bed/Cryostorage/CryostorageSystem.cs b/Content.Server/Bed/Cryostorage/CryostorageSystem.cs index 11184bee0a..a3b7fb8d67 100644 --- a/Content.Server/Bed/Cryostorage/CryostorageSystem.cs +++ b/Content.Server/Bed/Cryostorage/CryostorageSystem.cs @@ -197,7 +197,8 @@ public sealed class CryostorageSystem : SharedCryostorageSystem if (!CryoSleepRejoiningEnabled || !comp.AllowReEnteringBody) { - if (userId != null && Mind.TryGetMind(userId.Value, out var mind)) + if (userId != null && Mind.TryGetMind(userId.Value, out var mind) && + HasComp(mind.Value.Comp.CurrentEntity)) { _gameTicker.OnGhostAttempt(mind.Value, false); }