Possibly fix first loop immortality

This commit is contained in:
Nick 2023-08-20 11:44:33 -04:00
parent 685842843e
commit 95a7a79bae

View File

@ -547,7 +547,8 @@ namespace NewHorizons
}
// Wait for player to be awake and also for frames to pass
Delay.RunWhenOrInNUpdates(() => OnSystemReady(DidWarpFromShip, DidWarpFromVessel), () => _playerAwake && PlayerSpawned, 30);
var justLinkedToStatue = PlayerData.KnowsLaunchCodes() && PlayerData._currentGameSave.loopCount == 1;
Delay.RunWhenOrInNUpdates(() => OnSystemReady(DidWarpFromShip, DidWarpFromVessel), () => (_playerAwake && PlayerSpawned) || justLinkedToStatue, 30);
}
else
{