nevermind i have no idea what I'm doing lol

This commit is contained in:
Noah Pilarski 2025-02-15 02:27:08 -05:00
parent d9b51fa5a8
commit c93689037b

View File

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