diff options
| author | mat <git@matdoes.dev> | 2023-10-08 03:58:57 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-10-08 03:58:57 -0500 |
| commit | 5212ba4d5d6cb34f9543b8a98d07798deeb7ba94 (patch) | |
| tree | 7300befa1faaeebdcccb8ad1aacb7043daeb9e1e /azalea/src | |
| parent | 682609a24e62587094397aab13fda924aa44509e (diff) | |
| download | azalea-drasl-5212ba4d5d6cb34f9543b8a98d07798deeb7ba94.tar.xz | |
update repo links
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/pathfinder/mod.rs | 18 |
1 files changed, 16 insertions, 2 deletions
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; |
