From cb21acdf457f3009f2cb99e2cddfbbad9f3f4730 Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 30 Jun 2022 20:10:24 -0400 Subject: [PATCH] Don't use cache + only find active for RemoveChildren --- NewHorizons/Handlers/PlanetCreationHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NewHorizons/Handlers/PlanetCreationHandler.cs b/NewHorizons/Handlers/PlanetCreationHandler.cs index a65a77db..b67661d8 100644 --- a/NewHorizons/Handlers/PlanetCreationHandler.cs +++ b/NewHorizons/Handlers/PlanetCreationHandler.cs @@ -252,7 +252,7 @@ namespace NewHorizons.Handlers { foreach (var child in body.Config.removeChildren) { - Main.Instance.ModHelper.Events.Unity.FireInNUpdates(() => SearchUtilities.Find(go.name + "/" + child)?.SetActive(false), 2); + Main.Instance.ModHelper.Events.Unity.FireInNUpdates(() => GameObject.Find(go.name + "/" + child)?.SetActive(false), 2); } }