You can load now

This commit is contained in:
Noah Pilarski 2022-08-11 14:05:23 -04:00
parent 215643607c
commit e2499312dd
2 changed files with 7 additions and 2 deletions

View File

@ -27,7 +27,12 @@ namespace NewHorizons.Handlers
public static void LoadVessel()
{
if (Instance.CurrentStarSystem == "EyeOfTheUniverse") return SearchUtilities.Find("Vessel_Body/SPAWN_Vessel").GetComponent<EyeSpawnPoint>();
if (Instance.CurrentStarSystem == "EyeOfTheUniverse")
{
_vesselSpawnPoint = SearchUtilities.Find("Vessel_Body/SPAWN_Vessel").GetComponent<EyeSpawnPoint>();
return;
}
if (Instance.IsWarpingFromVessel)
_vesselSpawnPoint = Instance.CurrentStarSystem == "SolarSystem" ? UpdateVessel() : CreateVessel();
else

View File

@ -336,7 +336,7 @@ namespace NewHorizons
BrambleNodeBuilder.Init(BodyDict[CurrentStarSystem].Select(x => x.Config).Where(x => x.Bramble?.dimension != null).ToArray());
PlanetCreationHandler.Init(BodyDict[CurrentStarSystem]);
if (isSolarSystem) VesselWarpHandler.LoadVessel();
VesselWarpHandler.LoadVessel();
SystemCreationHandler.LoadSystem(SystemDict[CurrentStarSystem]);
LoadTranslations(ModHelper.Manifest.ModFolderPath + "Assets/", this);