mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
use SetParentSector instead of setting _parentSector directly
This commit is contained in:
parent
5b2e66a8ba
commit
2ef5582c83
@ -336,7 +336,7 @@ namespace NewHorizons
|
||||
|
||||
//Fix attlerock vanilla sector components (they were set to timber hearth's sector)
|
||||
var thm = SearchUtilities.Find("Moon_Body/Sector_THM").GetComponent<Sector>();
|
||||
thm._parentSector = SearchUtilities.Find("TimberHearth_Body/Sector_TH").GetComponent<Sector>();
|
||||
thm.SetParentSector(SearchUtilities.Find("TimberHearth_Body/Sector_TH").GetComponent<Sector>());
|
||||
foreach (var component in thm.GetComponentsInChildren<Component>(true))
|
||||
{
|
||||
if (component is ISectorGroup sectorGroup)
|
||||
@ -352,7 +352,7 @@ namespace NewHorizons
|
||||
|
||||
//Fix hollow's lantern vanilla sector components (they were set to brittle hollow's sector)
|
||||
var vm = SearchUtilities.Find("VolcanicMoon_Body/Sector_VM").GetComponent<Sector>();
|
||||
vm._parentSector = SearchUtilities.Find("BrittleHollow_Body/Sector_BH").GetComponent<Sector>();
|
||||
vm.SetParentSector(SearchUtilities.Find("BrittleHollow_Body/Sector_BH").GetComponent<Sector>());
|
||||
foreach (var component in vm.GetComponentsInChildren<Component>(true))
|
||||
{
|
||||
if (component is ISectorGroup sectorGroup)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user