Skip to content

Commit

Permalink
Merge pull request #20 from Jaksuhn/fixes
Browse files Browse the repository at this point in the history
make stop cancel everything
  • Loading branch information
awgil authored Jun 2, 2024
2 parents 5efe2f2 + 4e35a10 commit 645e591
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vnavmesh/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,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;
}
Expand Down Expand Up @@ -156,6 +156,7 @@ private void OnCommand(string command, string arguments)
break;
case "stop":
_followPath.Stop();
_navmeshManager.CancelAllQueries();
break;
case "aligncamera":
Service.Config.AlignCameraToMovement ^= true;
Expand Down

0 comments on commit 645e591

Please sign in to comment.