Fix SetDefaultStarSystem not working, fix Outsider breaking map mode

This commit is contained in:
xen-42 2024-09-16 18:32:16 -04:00
parent fe86014b97
commit b42fb36925
2 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,7 @@ namespace NewHorizons.Builder.ShipLog
if (shipLogAstroObject._id == "POWER_STATION")
{
astroObject = GameObject.FindObjectsOfType<AstroObject>().FirstOrDefault(x => x._customName == "Power Station");
if (astroObject == null) continue;
}
else
{

View File

@ -935,6 +935,10 @@ namespace NewHorizons
{
_defaultStarSystem = defaultSystem;
}
if (LoadManager.GetCurrentScene() != OWScene.SolarSystem && LoadManager.GetCurrentScene() != OWScene.EyeOfTheUniverse)
{
CurrentStarSystem = _defaultStarSystem;
}
}
#endregion Load