From 5212ba4d5d6cb34f9543b8a98d07798deeb7ba94 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 8 Oct 2023 03:58:57 -0500 Subject: update repo links --- azalea/src/pathfinder/mod.rs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'azalea/src') diff --git a/azalea/src/pathfinder/mod.rs b/azalea/src/pathfinder/mod.rs index 3a75bff7..f0382634 100644 --- a/azalea/src/pathfinder/mod.rs +++ b/azalea/src/pathfinder/mod.rs @@ -699,8 +699,22 @@ fn stop_pathfinding_on_instance_change( } /// A component that makes bots run /particle commands while pathfinding to show -/// where they're going. This requires the bots to have op permissions, and -/// it'll make them spam *a lot* of commands. +/// where they're going. This requires the bots to have server operator +/// permissions, and it'll make them spam *a lot* of commands. +/// +/// ``` +/// async fn handle(mut bot: Client, event: azalea::Event, state: State) -> anyhow::Result<()> { +/// match event { +/// azalea::Event::Init => { +/// bot.ecs +/// .lock() +/// .entity_mut(bot.entity) +/// .insert(PathfinderDebugParticles); +/// } +/// _ => {} +/// } +/// } +/// ``` #[derive(Component)] pub struct PathfinderDebugParticles; -- cgit v1.2.3