aboutsummaryrefslogtreecommitdiff
path: root/bot/src
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src')
-rw-r--r--bot/src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/src/main.rs b/bot/src/main.rs
index cd27ba5a..2618675e 100644
--- a/bot/src/main.rs
+++ b/bot/src/main.rs
@@ -21,6 +21,10 @@ async fn main() {
// TODO: have a "loaded" or "ready" event that fires when all chunks are loaded
Event::Login => {}
Event::Chat(p) => {
+ let state = client.state.lock().await;
+ let world = state.world.as_ref().unwrap();
+ // println!("{:?}", state.player.entity);
+ // world.get_block_state(state.player.entity.pos);
// println!("{}", p.message.to_ansi(None));
// if p.message.to_ansi(None) == "<py5> ok" {
// let state = client.state.lock().await;