mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
let death carry out if we should wake up in dream world
This commit is contained in:
parent
85f46fdccc
commit
a629d55561
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user