diff options
| author | mat <github@matdoes.dev> | 2022-06-17 18:09:34 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-06-17 18:09:34 -0500 |
| commit | 0a945e73ec43b3b0389e004e138c83f41cddc532 (patch) | |
| tree | ef28483d3b147946b546d8e897ef91acbec2d51b /bot | |
| parent | d27d283686d2920d7a7c08087e2d5a39c63fae1c (diff) | |
| download | azalea-drasl-0a945e73ec43b3b0389e004e138c83f41cddc532.tar.xz | |
EntityPos
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/src/main.rs | 4 |
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; |
