mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Update PlanetCreationHandler.cs
This commit is contained in:
parent
cfd4fc3750
commit
c27e2ed665
@ -813,8 +813,8 @@ namespace NewHorizons.Handlers
|
||||
if (referenceFrame != null) referenceFrame._attachedAstroObject = newAO;
|
||||
|
||||
// QM and stuff don't have orbit lines
|
||||
// Using the name since NH only creates the OrbitLine components next frame
|
||||
var orbitLine = go.transform.Find("Orbit")?.gameObject;
|
||||
// Using the name as well since NH only creates the OrbitLine components next frame
|
||||
var orbitLine = go.GetComponentInChildren<OrbitLine>()?.gameObject ?? go.transform.Find("Orbit")?.gameObject;
|
||||
if (orbitLine != null)
|
||||
{
|
||||
UnityEngine.Object.Destroy(orbitLine);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user