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;
|
||||
_subsectors = new List<Sector>();
|
||||
_occupantMask = DynamicOccupant.Player;
|
||||
var parentSector = GetComponentInParent<Sector>();
|
||||
if (parentSector != null && parentSector != this)
|
||||
var parentSector = GetComponentsInParent<Sector>().FirstOrDefault(parentSector => parentSector != this);
|
||||
if (parentSector != null)
|
||||
{
|
||||
_parentSector = parentSector;
|
||||
_parentSector.AddSubsector(this);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user