(UNTESTED) possibly fix meditation goof

This commit is contained in:
JohnCorby 2022-10-24 09:37:46 -07:00
parent 1aae7b41dc
commit 48144a8214

View File

@ -141,10 +141,15 @@ public class DeathPatches : QSBPatch
Achievements.Earn(Achievements.Type.EARLY_ADOPTER);
}
if (PlayerState.InDreamWorld() && deathType != DeathType.Dream && deathType != DeathType.DreamExplosion && deathType != DeathType.Supernova && deathType != DeathType.TimeLoop && deathType != DeathType.Meditation)
if (PlayerState.InDreamWorld())
{
// exit dream world either way to prevent goof with respawn
// TODO: test
Locator.GetDreamWorldController().ExitDreamWorld(deathType);
return;
if (deathType != DeathType.Dream && deathType != DeathType.DreamExplosion && deathType != DeathType.Supernova && deathType != DeathType.TimeLoop && deathType != DeathType.Meditation)
{
return;
}
}
if (!@this._isDying)