Fix a potential movement issue if you're close to the target but in another zone v1.10
authorLiza Carvelli <liza@carvel.li>
Wed, 17 Jul 2024 18:41:21 +0000 (20:41 +0200)
committerLiza Carvelli <liza@carvel.li>
Wed, 17 Jul 2024 18:41:21 +0000 (20:41 +0200)
Questionable/Controller/Steps/Shared/Move.cs
Questionable/Questionable.csproj

index b679440589fd2c9c5312cf6e6e99dccf1f4e0c5e..1abbd4eea5281555460490827c9de9da50ede612 100644 (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);
index 1e2c3f0c457c955447643c07ca8dfc90b167b26c..9639c5f0e161debdc8a57872c459666611fe8c7b 100644 (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>