diff options
| author | mat <github@matdoes.dev> | 2022-06-18 16:33:38 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-06-18 16:33:38 -0500 |
| commit | e32b8fabb78a86e073c7bb3270b1bc89a532350a (patch) | |
| tree | 53f485306cf053db82a94feb655ec1fc49eff918 /bot/src | |
| parent | d8e0457b62f5826183671e5b05890b400be35709 (diff) | |
| download | azalea-drasl-e32b8fabb78a86e073c7bb3270b1bc89a532350a.tar.xz | |
Add a new example that uses entities
Diffstat (limited to 'bot/src')
| -rw-r--r-- | bot/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/src/main.rs b/bot/src/main.rs index 287dd4f6..0b9da787 100644 --- a/bot/src/main.rs +++ b/bot/src/main.rs @@ -23,7 +23,7 @@ async fn main() { Event::Chat(p) => { let state = client.state.lock().await; let world = state.world.as_ref().unwrap(); - println!("{:?}", state.player.entity()); + println!("{:?}", state.world.entities.get_player(player)); // world.get_block_state(state.player.entity.pos); // println!("{}", p.message.to_ansi(None)); // if p.message.to_ansi(None) == "<py5> ok" { |
