From ee614dec5c412cf5d155303db5ade1cd33fc0c12 Mon Sep 17 00:00:00 2001 From: c4llv07e <38111072+c4llv07e@users.noreply.github.com> Date: Thu, 29 Feb 2024 01:09:02 +0300 Subject: [PATCH] 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 --- Content.Server/Bed/Cryostorage/CryostorageSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.51.2