1
0
mirror of https://github.com/soarqin/DSP_Mods_TO.git synced 2025-12-19 13:03:32 +08:00
This commit is contained in:
2024-03-21 02:14:53 +08:00
parent dd23896c8e
commit cd7293f54c
5 changed files with 156 additions and 96 deletions

View File

@@ -1,6 +1,7 @@
using System.Linq;
using CruiseAssist.Commons;
using CruiseAssist.Enums;
using CruiseAssist.UI;
using HarmonyLib;
namespace CruiseAssist.Patches;
@@ -21,9 +22,9 @@ internal class Patch_PlayerMoveWalk
CruiseAssistPlugin.TargetSelected = false;
if (GameMain.localPlanet != null)
{
if (CruiseAssistPlugin.History.Count == 0 || CruiseAssistPlugin.History.Last() != GameMain.localPlanet.id)
if (CruiseAssistStarListUI.LastHistoryId() != GameMain.localPlanet.id)
{
CruiseAssistPlugin.AddHistory(GameMain.localPlanet.id);
CruiseAssistStarListUI.AddHistory(GameMain.localPlanet);
ConfigManager.CheckConfig(ConfigManager.Step.State);
}
}