diff options
| author | Ubuntu <github@matdoes.dev> | 2022-10-17 18:51:42 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2022-10-17 18:51:42 +0000 |
| commit | 5ffc46ae5c746287b84e96f2b60d7a2ff07deddf (patch) | |
| tree | 54acf6900d4db03d6ee0b4b15572f4659d7f89ea /azalea/src/bot.rs | |
| parent | d4d4ba054f4da0dcf550524523792ee79268d40d (diff) | |
| download | azalea-drasl-5ffc46ae5c746287b84e96f2b60d7a2ff07deddf.tar.xz | |
change the order of event in handle fn
Diffstat (limited to 'azalea/src/bot.rs')
| -rw-r--r-- | azalea/src/bot.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Self>, mut bot: Client, event: Arc<Event>) { + async fn handle(self: Arc<Self>, event: Arc<Event>, mut bot: Client) { if let Event::Tick = *event { let mut state = self.state.lock(); if state.jumping_once { |
