From a620158907ae0d021d5438cff87b8301d1312e74 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 26 Aug 2023 13:17:54 -0400 Subject: [PATCH] Get HGT streaming group more reliably --- NewHorizons/Handlers/StreamingHandler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NewHorizons/Handlers/StreamingHandler.cs b/NewHorizons/Handlers/StreamingHandler.cs index aeeb7794..c037594d 100644 --- a/NewHorizons/Handlers/StreamingHandler.cs +++ b/NewHorizons/Handlers/StreamingHandler.cs @@ -1,3 +1,4 @@ +using NewHorizons.Utility; using System.Collections.Generic; using System.Linq; using UnityEngine; @@ -143,7 +144,7 @@ namespace NewHorizons.Handlers { if (name is AstroObject.Name.CaveTwin or AstroObject.Name.TowerTwin) { - return GameObject.Find("FocalBody/StreamingGroup_HGT").GetComponent(); + return SearchUtilities.Find("FocalBody/StreamingGroup_HGT").GetComponent(); } else {