let death carry out if we should wake up in dream world

This commit is contained in:
JohnCorby 2022-03-28 12:21:07 -07:00
parent 85f46fdccc
commit a629d55561

View File

@ -186,7 +186,7 @@ public class DeathPatches : QSBPatch
return;
}
if (!Custom(deathType))
if (!Custom(@this, deathType))
{
return;
}
@ -230,7 +230,7 @@ public class DeathPatches : QSBPatch
}
}
static bool Custom(DeathType deathType)
static bool Custom(DeathManager @this, DeathType deathType)
{
if (RespawnOnDeath.Instance == null)
{
@ -242,6 +242,11 @@ public class DeathPatches : QSBPatch
return true;
}
if (@this.CheckShouldWakeInDreamWorld())
{
return true;
}
if (QSBPlayerManager.LocalPlayer.IsDead)
{
return false;