mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
right that would make sense lol
This commit is contained in:
parent
c93689037b
commit
e4407995d5
@ -515,8 +515,8 @@ namespace NewHorizons.Handlers
|
|||||||
_triggerRoot = gameObject;
|
_triggerRoot = gameObject;
|
||||||
_subsectors = new List<Sector>();
|
_subsectors = new List<Sector>();
|
||||||
_occupantMask = DynamicOccupant.Player;
|
_occupantMask = DynamicOccupant.Player;
|
||||||
var parentSector = GetComponentInParent<Sector>();
|
var parentSector = GetComponentsInParent<Sector>().FirstOrDefault(parentSector => parentSector != this);
|
||||||
if (parentSector != null && parentSector != this)
|
if (parentSector != null)
|
||||||
{
|
{
|
||||||
_parentSector = parentSector;
|
_parentSector = parentSector;
|
||||||
_parentSector.AddSubsector(this);
|
_parentSector.AddSubsector(this);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user