From adf8a604c400c19df8e28d6345abf2c0a8c32d05 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 4 Apr 2025 13:48:48 -0845 Subject: fix ordering for handle_attack_queued --- azalea/examples/testbot/commands/movement.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea/examples') diff --git a/azalea/examples/testbot/commands/movement.rs b/azalea/examples/testbot/commands/movement.rs index 114c3c31..a400809b 100644 --- a/azalea/examples/testbot/commands/movement.rs +++ b/azalea/examples/testbot/commands/movement.rs @@ -77,7 +77,7 @@ pub fn register(commands: &mut CommandDispatcher>) { commands.register(literal("down").executes(|ctx: &Ctx| { let source = ctx.source.clone(); tokio::spawn(async move { - let mut bot = source.lock().bot.clone(); + let bot = source.lock().bot.clone(); let position = BlockPos::from(bot.position()); source.lock().reply("mining..."); bot.mine(position.down(1)).await; -- cgit v1.2.3