Fix a potential movement issue if you're close to the target but in another zone

pull/7/head v1.10
Liza 2024-07-17 20:41:21 +02:00
parent 03c01b827a
commit 8ec3583ffc
Signed by: liza
GPG Key ID: 7199F8D727D55F67
2 changed files with 5 additions and 1 deletions

View File

@ -91,6 +91,10 @@ internal static class Move
var position = clientState.LocalPlayer?.Position ?? new Vector3();
float actualDistance = (position - Destination).Length();
// this may otherwise sometimes skip a move step
if (Step.AethernetShortcut != null || Step.AetheryteShortcut != null)
actualDistance = float.MaxValue;
if (Step.Mount == true)
yield return serviceProvider.GetRequiredService<MountTask>()
.With(Step.TerritoryId, MountTask.EMountIf.Always);

View File

@ -1,6 +1,6 @@
<Project Sdk="Dalamud.NET.Sdk/9.0.2">
<PropertyGroup>
<Version>1.9</Version>
<Version>1.10</Version>
<OutputPath>dist</OutputPath>
<PathMap Condition="$(SolutionDir) != ''">$(SolutionDir)=X:\</PathMap>
</PropertyGroup>