From fe52a13439f0bc941ac3852c4639be052b17718f Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 18 Jul 2023 23:52:45 -0400 Subject: [PATCH] Try fixing ship having no marker spawned in bramble dimension --- NewHorizons/Builder/General/SpawnPointBuilder.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/NewHorizons/Builder/General/SpawnPointBuilder.cs b/NewHorizons/Builder/General/SpawnPointBuilder.cs index 591defb4..536582aa 100644 --- a/NewHorizons/Builder/General/SpawnPointBuilder.cs +++ b/NewHorizons/Builder/General/SpawnPointBuilder.cs @@ -65,6 +65,13 @@ namespace NewHorizons.Builder.General } ship.GetRequiredComponent().SetBodyToMatch(owRigidBody); + + // Might fix #648 + var fogWarpVolume = planetGO.GetComponentInChildren(); + if (fogWarpVolume != null) + { + ship.GetComponentInChildren().TrackFogWarpVolume(fogWarpVolume); + } } spawnGO.SetActive(true);