From e87bd002d863078cc14a5d619756e4dca86ebd43 Mon Sep 17 00:00:00 2001 From: Phecda <7377849+phecdaDia@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:28:39 +0200 Subject: [PATCH] Update FollowPath.cs to prevent executing jump while diving. --- vnavmesh/Movement/FollowPath.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vnavmesh/Movement/FollowPath.cs b/vnavmesh/Movement/FollowPath.cs index f97b1c6..93810ad 100644 --- a/vnavmesh/Movement/FollowPath.cs +++ b/vnavmesh/Movement/FollowPath.cs @@ -109,6 +109,10 @@ private static float DistanceToLineSegment(Vector3 v, Vector3 a, Vector3 b) private unsafe void ExecuteJump() { + // Unable to jump while diving, prevents spamming error messages. + if (Service.Condition[Dalamud.Game.ClientState.Conditions.ConditionFlag.Diving]) + return; + if (DateTime.Now >= _nextJump) { ActionManager.Instance()->UseAction(ActionType.GeneralAction, 2);