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 <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>
This commit is contained in:
@@ -197,7 +197,8 @@ public sealed class CryostorageSystem : SharedCryostorageSystem
|
|||||||
|
|
||||||
if (!CryoSleepRejoiningEnabled || !comp.AllowReEnteringBody)
|
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);
|
_gameTicker.OnGhostAttempt(mind.Value, false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user