From e32b8fabb78a86e073c7bb3270b1bc89a532350a Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 18 Jun 2022 16:33:38 -0500 Subject: Add a new example that uses entities --- bot/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/src') 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) == " ok" { -- cgit v1.2.3