From e2499312dd85776b4d0dea1b1fc734727f7ac450 Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Thu, 11 Aug 2022 14:05:23 -0400 Subject: [PATCH] You can load now --- NewHorizons/Handlers/VesselWarpHandler.cs | 7 ++++++- NewHorizons/Main.cs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/NewHorizons/Handlers/VesselWarpHandler.cs b/NewHorizons/Handlers/VesselWarpHandler.cs index eafc8484..5ede4fba 100644 --- a/NewHorizons/Handlers/VesselWarpHandler.cs +++ b/NewHorizons/Handlers/VesselWarpHandler.cs @@ -27,7 +27,12 @@ namespace NewHorizons.Handlers public static void LoadVessel() { - if (Instance.CurrentStarSystem == "EyeOfTheUniverse") return SearchUtilities.Find("Vessel_Body/SPAWN_Vessel").GetComponent(); + if (Instance.CurrentStarSystem == "EyeOfTheUniverse") + { + _vesselSpawnPoint = SearchUtilities.Find("Vessel_Body/SPAWN_Vessel").GetComponent(); + return; + } + if (Instance.IsWarpingFromVessel) _vesselSpawnPoint = Instance.CurrentStarSystem == "SolarSystem" ? UpdateVessel() : CreateVessel(); else diff --git a/NewHorizons/Main.cs b/NewHorizons/Main.cs index 1af5e4a7..bd438270 100644 --- a/NewHorizons/Main.cs +++ b/NewHorizons/Main.cs @@ -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);