diff options
| author | mat <github@matdoes.dev> | 2022-06-18 16:54:49 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-06-18 16:54:49 -0500 |
| commit | fc3151f89db1cf018bfebebb8f102e20911e64d3 (patch) | |
| tree | e04047dbcbfd9d9e8c6b7a98658ccdb4802eeabd /bot/src | |
| parent | e32b8fabb78a86e073c7bb3270b1bc89a532350a (diff) | |
| download | azalea-drasl-fc3151f89db1cf018bfebebb8f102e20911e64d3.tar.xz | |
account.rs and client.rs
Diffstat (limited to 'bot/src')
| -rw-r--r-- | bot/src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/src/main.rs b/bot/src/main.rs index 0b9da787..bfcba7f5 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -1,5 +1,4 @@ use azalea_client::{Account, Event}; -use azalea_core::BlockPos; #[tokio::main] async fn main() { @@ -20,10 +19,10 @@ async fn main() { match e { // TODO: have a "loaded" or "ready" event that fires when all chunks are loaded Event::Login => {} - Event::Chat(p) => { + Event::Chat(_p) => { let state = client.state.lock().await; let world = state.world.as_ref().unwrap(); - println!("{:?}", state.world.entities.get_player(player)); + println!("{:?}", world.entities); // world.get_block_state(state.player.entity.pos); // println!("{}", p.message.to_ansi(None)); // if p.message.to_ansi(None) == "<py5> ok" { |
