mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2025-12-19 13:03:32 +08:00
WIP
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user