* fix cryo removed minds of players who entered ghost role
Signed-off-by: c4llv07e <kseandi@gmail.com>
* better way to handle cryo with mind in it
Signed-off-by: c4llv07e <kseandi@gmail.com>
---------
Signed-off-by: c4llv07e <kseandi@gmail.com>
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<CryostorageContainedComponent>(mind.Value.Comp.CurrentEntity))
{
_gameTicker.OnGhostAttempt(mind.Value, false);
}