diff options
| author | mat <github@matdoes.dev> | 2022-05-05 23:33:08 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-05 23:33:08 -0500 |
| commit | e0239865659b2f2750edda7556548f6a2b8d4127 (patch) | |
| tree | 1a2ddf3499ae37bfed4255bf996fef6fd9f1bc84 /bot | |
| parent | 1b48cad53ffba45463be41dafb4dfbcab0f46c09 (diff) | |
| download | azalea-drasl-e0239865659b2f2750edda7556548f6a2b8d4127.tar.xz | |
random polish
Diffstat (limited to 'bot')
| -rwxr-xr-x | bot/Cargo.toml | 1 | ||||
| -rw-r--r-- | bot/src/main.rs | 13 |
2 files changed, 13 insertions, 1 deletions
diff --git a/bot/Cargo.toml b/bot/Cargo.toml index fd6ad067..e55f6c3d 100755 --- a/bot/Cargo.toml +++ b/bot/Cargo.toml @@ -7,5 +7,6 @@ version = "0.1.0" [dependencies] azalea-client = {path = "../azalea-client"} +azalea-core = {path = "../azalea-core"} azalea-protocol = {path = "../azalea-protocol"} tokio = "^1.14.0" diff --git a/bot/src/main.rs b/bot/src/main.rs index 7cf056bf..657d1adb 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -1,4 +1,5 @@ use azalea_client::{Account, Event}; +use azalea_core::ChunkPos; #[tokio::main] async fn main() { @@ -17,7 +18,17 @@ async fn main() { while let Some(e) = client.next().await { match e { - Event::Login => {} + // TODO: have a "loaded" or "ready" event that fires when all chunks are loaded + Event::Login => { + // let state = client.state.lock().await; + // let world = state.world.as_ref().unwrap(); + // let c = world[&ChunkPos::new(-1, -4)] + // .as_ref() + // .unwrap() + // .lock() + // .unwrap(); + // println!("{:?}", c); + } } } |
