From fa1d11d94a78d5b9a776fbd56f997f7c70cdb93b Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 26 Aug 2023 17:10:00 -0400 Subject: [PATCH] Explain root sector thing --- NewHorizons/Handlers/PlanetCreationHandler.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NewHorizons/Handlers/PlanetCreationHandler.cs b/NewHorizons/Handlers/PlanetCreationHandler.cs index 2ff9a98b..0b8249b0 100644 --- a/NewHorizons/Handlers/PlanetCreationHandler.cs +++ b/NewHorizons/Handlers/PlanetCreationHandler.cs @@ -772,6 +772,8 @@ namespace NewHorizons.Handlers // Fix sectors VanillaStreamingFix.UnparentSectorStreaming(ao.GetRootSector(), ao.gameObject, AstroObject.Name.HourglassTwins, Sector.Name.HourglassTwins); + // Not to be confused with Sector.GetRootSector, this returns the highest sector on the astro object not in the chain + // CaveTwin/TowerTwin sectors both have HGT as parent so we want to get rid of that link ao.GetRootSector().SetParentSector(null); }