From 65e87886d1d827301c60f2dca0519fa82a6dfb15 Mon Sep 17 00:00:00 2001 From: Ben C Date: Wed, 8 Jun 2022 14:40:06 -0400 Subject: [PATCH] Fix NRE in WarpDrivePatches.cs --- NewHorizons/Patches/WarpDrivePatches.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NewHorizons/Patches/WarpDrivePatches.cs b/NewHorizons/Patches/WarpDrivePatches.cs index 5f0d51a7..610cfbdd 100644 --- a/NewHorizons/Patches/WarpDrivePatches.cs +++ b/NewHorizons/Patches/WarpDrivePatches.cs @@ -15,7 +15,7 @@ namespace NewHorizons.Patches var newPrompt = TranslationHandler.GetTranslation("INTERSTELLAR_MODE", TranslationHandler.TextType.UI); __instance._detectiveModePrompt.SetText(newPrompt); - var text = SearchUtilities.Find("Ship_Body/Module_Cabin/Systems_Cabin/ShipLogPivot/ShipLog/ShipLogPivot/ShipLogCanvas/ScreenPromptListScaleRoot/ScreenPromptList_UpperRight/ScreenPrompt/Text").GetComponent(); + var text = GameObject.Find("Ship_Body/Module_Cabin/Systems_Cabin/ShipLogPivot/ShipLog/ShipLogPivot/ShipLogCanvas/ScreenPromptListScaleRoot/ScreenPromptList_UpperRight/ScreenPrompt/Text").GetComponent(); text.text = newPrompt; }