From 4e35a10d7e2fa7b4b9a8debe6b3651cd6ec3d6cf Mon Sep 17 00:00:00 2001 From: Jackson <9527380+Jaksuhn@users.noreply.github.com> Date: Thu, 16 May 2024 18:21:56 +0200 Subject: [PATCH] make stop cancel everything --- vnavmesh/Plugin.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vnavmesh/Plugin.cs b/vnavmesh/Plugin.cs index b472011..bc31dd5 100644 --- a/vnavmesh/Plugin.cs +++ b/vnavmesh/Plugin.cs @@ -76,7 +76,7 @@ Opens the debug menu. ShowInHelp = true, }; Service.CommandManager.AddHandler("/vnav", cmd); - Service.CommandManager.AddHandler("/vnavmesh", cmd); // legacy + Service.CommandManager.AddHandler("/vnavmesh", new CommandInfo(OnCommand) { HelpMessage = cmd.HelpMessage, ShowInHelp = false }); // legacy Service.Framework.Update += OnUpdate; } @@ -155,6 +155,7 @@ private void OnCommand(string command, string arguments) break; case "stop": _followPath.Stop(); + _navmeshManager.CancelAllQueries(); break; case "aligncamera": Service.Config.AlignCameraToMovement ^= true;