From e11a902fba8c8c63be982afbc6085a49c6a19f12 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 25 Dec 2024 12:09:27 +0000 Subject: patch pathfinder obstructions instead of just truncating the path --- azalea/examples/testbot/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'azalea/examples') diff --git a/azalea/examples/testbot/main.rs b/azalea/examples/testbot/main.rs index a9ba978a..680363e6 100644 --- a/azalea/examples/testbot/main.rs +++ b/azalea/examples/testbot/main.rs @@ -188,11 +188,7 @@ async fn handle(bot: Client, event: azalea::Event, state: State) -> anyhow::Resu Ok(()) } -async fn swarm_handle( - mut swarm: Swarm, - event: SwarmEvent, - _state: SwarmState, -) -> anyhow::Result<()> { +async fn swarm_handle(swarm: Swarm, event: SwarmEvent, _state: SwarmState) -> anyhow::Result<()> { match &event { SwarmEvent::Disconnect(account, join_opts) => { println!("bot got kicked! {}", account.username); -- cgit v1.2.3