edit a little

This commit is contained in:
Noah Pilarski 2025-02-15 02:20:56 -05:00
parent cdf977d652
commit 4ca24054b6

View File

@ -515,8 +515,12 @@ namespace NewHorizons.Handlers
_subsectors = new List<Sector>(); _subsectors = new List<Sector>();
_occupantMask = DynamicOccupant.Player; _occupantMask = DynamicOccupant.Player;
SectorManager.RegisterSector(this); SectorManager.RegisterSector(this);
_parentSector = GetComponentInParent<Sector>(); var parentSector = GetComponentInParent<Sector>();
if (_parentSector != null && _parentSector != this) _parentSector.AddSubsector(this); if (parentSector != null && parentSector != this)
{
_parentSector = parentSector;
_parentSector.AddSubsector(this);
}
} }
public void Start() public void Start()