aboutsummaryrefslogtreecommitdiff
path: root/bot/src
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src')
-rw-r--r--bot/src/main.rs13
1 files changed, 12 insertions, 1 deletions
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);
+ }
}
}