Try fixing ship having no marker spawned in bramble dimension

This commit is contained in:
Nick 2023-07-18 23:52:45 -04:00
parent 1915efc0c2
commit fe52a13439

View File

@ -65,6 +65,13 @@ namespace NewHorizons.Builder.General
}
ship.GetRequiredComponent<MatchInitialMotion>().SetBodyToMatch(owRigidBody);
// Might fix #648
var fogWarpVolume = planetGO.GetComponentInChildren<OuterFogWarpVolume>();
if (fogWarpVolume != null)
{
ship.GetComponentInChildren<FogWarpDetector>().TrackFogWarpVolume(fogWarpVolume);
}
}
spawnGO.SetActive(true);