From 5ffc46ae5c746287b84e96f2b60d7a2ff07deddf Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 17 Oct 2022 18:51:42 +0000 Subject: change the order of event in handle fn --- azalea/src/bot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea/src/bot.rs') diff --git a/azalea/src/bot.rs b/azalea/src/bot.rs index 1570fa5e..26e35fda 100644 --- a/azalea/src/bot.rs +++ b/azalea/src/bot.rs @@ -33,7 +33,7 @@ impl BotTrait for azalea_client::Client { #[async_trait] impl crate::Plugin for Plugin { - async fn handle(self: Arc, mut bot: Client, event: Arc) { + async fn handle(self: Arc, event: Arc, mut bot: Client) { if let Event::Tick = *event { let mut state = self.state.lock(); if state.jumping_once { -- cgit v1.2.3