From 87c859728eda61f2cfdfb5c6728e01f8e96e5e36 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 13 May 2022 16:30:24 -0400 Subject: [PATCH] Destroy sun station debris properly --- NewHorizons/Utility/AstroObjectLocator.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/NewHorizons/Utility/AstroObjectLocator.cs b/NewHorizons/Utility/AstroObjectLocator.cs index b46bec43..76c5e579 100644 --- a/NewHorizons/Utility/AstroObjectLocator.cs +++ b/NewHorizons/Utility/AstroObjectLocator.cs @@ -111,9 +111,6 @@ namespace NewHorizons.Utility otherChildren.Add(GameObject.Find("FakeCannonBarrel_Body (1)")); otherChildren.Add(GameObject.Find("Debris_Body (1)")); break; - case AstroObject.Name.SunStation: - otherChildren.Add(GameObject.Find("SS_Debris_Body")); - break; case AstroObject.Name.GiantsDeep: otherChildren.Add(GameObject.Find("BrambleIsland_Body")); otherChildren.Add(GameObject.Find("GabbroIsland_Body")); @@ -134,6 +131,10 @@ namespace NewHorizons.Utility otherChildren.Add(GameObject.Find("BackRaft_Body")); otherChildren.Add(GameObject.Find("SealRaft_Body")); break; + // For some dumb reason the sun station doesn't use AstroObject.Name.SunStation + case AstroObject.Name.CustomString: + if(primary._customName.Equals("Sun Station")) otherChildren.Add(GameObject.Find("SS_Debris_Body")); + break; default: break; }