mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix hollow's lantern vanilla sector components
they were set to brittle hollow's sector
This commit is contained in:
parent
c9e9d6b48a
commit
aeca3d8698
@ -344,6 +344,21 @@ namespace NewHorizons
|
||||
behaviour.SetSector(thm);
|
||||
}
|
||||
}
|
||||
|
||||
//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>();
|
||||
foreach (var component in vm.GetComponentsInChildren<Component>(true))
|
||||
{
|
||||
if (component is ISectorGroup sectorGroup)
|
||||
{
|
||||
sectorGroup.SetSector(vm);
|
||||
}
|
||||
|
||||
if (component is SectoredMonoBehaviour behaviour)
|
||||
{
|
||||
behaviour.SetSector(vm);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user