mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-08-05 07:40:12 +08:00
Update PlayerPatch.cs
修复同时开启新旧算法的情况。
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user