Update PlayerPatch.cs

修复同时开启新旧算法的情况。
This commit is contained in:
WinterG26
2026-07-22 14:23:13 +08:00
committed by soarqin
parent bf73ccd689
commit d37f500926
+8 -2
View File
@@ -760,11 +760,17 @@ public class PlayerPatch : PatchImpl<PlayerPatch>
/// </summary>
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<PlayerPatch>
}
#endregion
}
}