Prevent softlock due to slide reels when changing system/reloading

This commit is contained in:
Nick 2023-07-06 00:21:20 -04:00
parent 899de6943b
commit f60620c5a5

View File

@ -811,6 +811,12 @@ namespace NewHorizons
return;
}
if (LoadManager.GetCurrentScene() == OWScene.SolarSystem || LoadManager.GetCurrentScene() == OWScene.EyeOfTheUniverse)
{
// Slide reel unloading is tied to being removed from the sector, so we do that here to prevent a softlock
Locator.GetPlayerSectorDetector().RemoveFromAllSectors();
}
if (IsChangingStarSystem) return;
IsWarpingFromShip = warp;