From d37f5009265ff7d1edacbd140e3b2d84ecc480b2 Mon Sep 17 00:00:00 2001 From: WinterG26 <437552924@qq.com> Date: Thu, 12 Mar 2026 03:07:09 +0800 Subject: [PATCH] Update PlayerPatch.cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复同时开启新旧算法的情况。 --- UXAssist/Patches/PlayerPatch.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/UXAssist/Patches/PlayerPatch.cs b/UXAssist/Patches/PlayerPatch.cs index 46a2424..8ddb47a 100644 --- a/UXAssist/Patches/PlayerPatch.cs +++ b/UXAssist/Patches/PlayerPatch.cs @@ -760,11 +760,17 @@ public class PlayerPatch : PatchImpl /// private static bool PreCheckAndRefreshTarget(Player player) { - if (! UseNewNavigationAlgorithm.Value || AutoNavigationEnabled.Value) + if (! UseNewNavigationAlgorithm.Value) { StopAutoNavigation( ); return true; } + if (AutoNavigationEnabled.Value) + { + UseNewNavigationAlgorithm.Value = false; + StopAutoNavigation( ); + return true; + } if (IsEnable is not true) return true; if (player.mecha.thrusterLevel < 2) @@ -1361,4 +1367,4 @@ public class PlayerPatch : PatchImpl } #endregion -} \ No newline at end of file +}