From 7ad2d01a108f1fa906d25e2a515fb051684ad714 Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Thu, 19 May 2022 00:37:36 -0400 Subject: [PATCH] Untarget when switching states https://github.com/xen-42/outer-wilds-new-horizons/issues/134 --- NewHorizons/Components/QuantumPlanet.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NewHorizons/Components/QuantumPlanet.cs b/NewHorizons/Components/QuantumPlanet.cs index 9627540e..4b932df9 100644 --- a/NewHorizons/Components/QuantumPlanet.cs +++ b/NewHorizons/Components/QuantumPlanet.cs @@ -107,6 +107,8 @@ namespace NewHorizons.Components if (newState.orbit != null && newState.orbit != oldState.orbit) SetNewOrbit(primaryBody, orbitalParams); _currentIndex = newIndex; + + GlobalMessenger.FireEvent("QuantumMoonChangeState", _rb); } // Be completely sure we move the visibility tracker back to our planet