diff options
| author | mat <git@matdoes.dev> | 2025-06-14 20:33:22 -1030 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-14 20:33:22 -1030 |
| commit | 5e81d85d7e8eeca1b6c86ea028353d7c55361961 (patch) | |
| tree | 1cf36f406444811ca39b38af0d874d0ae2351368 /azalea/examples/todo | |
| parent | a2606569bb79867d07a075bcf7b05730e4264d72 (diff) | |
| download | azalea-drasl-5e81d85d7e8eeca1b6c86ea028353d7c55361961.tar.xz | |
add note about current_thread to azalea readme
Diffstat (limited to 'azalea/examples/todo')
| -rw-r--r-- | azalea/examples/todo/craft_dig_straight_down.rs | 5 | ||||
| -rw-r--r-- | azalea/examples/todo/mine_a_chunk.rs | 2 | ||||
| -rw-r--r-- | azalea/examples/todo/pvp.rs | 10 |
3 files changed, 8 insertions, 9 deletions
diff --git a/azalea/examples/todo/craft_dig_straight_down.rs b/azalea/examples/todo/craft_dig_straight_down.rs index 0dc8e16d..bf312331 100644 --- a/azalea/examples/todo/craft_dig_straight_down.rs +++ b/azalea/examples/todo/craft_dig_straight_down.rs @@ -1,7 +1,6 @@ use std::sync::Arc; -use azalea::pathfinder; -use azalea::prelude::*; +use azalea::{pathfinder, prelude::*}; use parking_lot::Mutex; #[derive(Default, Clone, Component)] @@ -9,7 +8,7 @@ struct State { pub started: Arc<Mutex<bool>>, } -#[tokio::main] +#[tokio::main(flavor = "current_thread")] async fn main() { let account = Account::offline("bot"); // or let bot = Account::microsoft("email").await; diff --git a/azalea/examples/todo/mine_a_chunk.rs b/azalea/examples/todo/mine_a_chunk.rs index 0c439f26..eb7fafd4 100644 --- a/azalea/examples/todo/mine_a_chunk.rs +++ b/azalea/examples/todo/mine_a_chunk.rs @@ -1,6 +1,6 @@ use azalea::{prelude::*, swarm::prelude::*}; -#[tokio::main] +#[tokio::main(flavor = "current_thread")] async fn main() { let mut accounts = Vec::new(); let mut states = Vec::new(); diff --git a/azalea/examples/todo/pvp.rs b/azalea/examples/todo/pvp.rs index fb5a768d..0639d86b 100644 --- a/azalea/examples/todo/pvp.rs +++ b/azalea/examples/todo/pvp.rs @@ -1,11 +1,11 @@ use std::time::Duration; -use azalea::ecs::query::With; -use azalea::entity::metadata::Player; -use azalea::{pathfinder, Account, Client, Event, GameProfileComponent}; -use azalea::{prelude::*, swarm::prelude::*}; +use azalea::{ + Account, Client, Event, GameProfileComponent, ecs::query::With, entity::metadata::Player, + pathfinder, prelude::*, swarm::prelude::*, +}; -#[tokio::main] +#[tokio::main(flavor = "current_thread")] async fn main() { let mut accounts = Vec::new(); let mut states = Vec::new(); |
