mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Handle possible null parent parent
This commit is contained in:
parent
06491ec9bd
commit
823aa36b56
@ -63,7 +63,6 @@ namespace NewHorizons.Builder.Props.EchoesOfTheEye
|
||||
{
|
||||
if (c && c.gameObject.layer == Layer.DreamSimulation) return false;
|
||||
}
|
||||
}
|
||||
if (go.transform.parent.parent)
|
||||
{
|
||||
foreach (Transform c in go.transform.parent.parent)
|
||||
@ -71,6 +70,7 @@ namespace NewHorizons.Builder.Props.EchoesOfTheEye
|
||||
if (c && c.gameObject.layer == Layer.DreamSimulation) return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
var t = go.transform;
|
||||
while (t != null)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user