aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/examples')
-rwxr-xr-xazalea/examples/pvp.rs2
-rw-r--r--azalea/examples/testbot.rs18
2 files changed, 10 insertions, 10 deletions
diff --git a/azalea/examples/pvp.rs b/azalea/examples/pvp.rs
index 180b6577..fb5a768d 100755
--- a/azalea/examples/pvp.rs
+++ b/azalea/examples/pvp.rs
@@ -1,9 +1,9 @@
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_ecs::query::With;
#[tokio::main]
async fn main() {
diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs
index dd1629ae..7b7b32b0 100644
--- a/azalea/examples/testbot.rs
+++ b/azalea/examples/testbot.rs
@@ -52,17 +52,17 @@ async fn main() -> anyhow::Result<()> {
}
loop {
- let e = SwarmBuilder::new()
- .add_accounts(accounts.clone())
- .set_handler(handle)
- .set_swarm_handler(swarm_handle)
- .join_delay(Duration::from_millis(1000))
- .start("localhost")
- .await;
- // let e = azalea::ClientBuilder::new()
+ // let e = SwarmBuilder::new()
+ // .add_accounts(accounts.clone())
// .set_handler(handle)
- // .start(Account::offline("bot"), "localhost")
+ // .set_swarm_handler(swarm_handle)
+ // .join_delay(Duration::from_millis(1000))
+ // .start("localhost")
// .await;
+ let e = azalea::ClientBuilder::new()
+ .set_handler(handle)
+ .start(Account::offline("bot"), "localhost")
+ .await;
eprintln!("{e:?}");
}
}