From 7f4e3c583dd669561e8502822952fc9afe26e005 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 12 Aug 2025 11:00:11 -1000 Subject: add nearest_entity_by and improve some docs --- azalea/examples/testbot/commands.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'azalea/examples') diff --git a/azalea/examples/testbot/commands.rs b/azalea/examples/testbot/commands.rs index ecd68ade..7486780e 100644 --- a/azalea/examples/testbot/commands.rs +++ b/azalea/examples/testbot/commands.rs @@ -31,9 +31,10 @@ impl CommandSource { pub fn entity(&mut self) -> Option { let username = self.chat.sender()?; - self.bot.entity_by::, &GameProfileComponent>( - |profile: &&GameProfileComponent| profile.name == username, - ) + self.bot + .any_entity_by::, &GameProfileComponent>( + |profile: &&GameProfileComponent| profile.name == username, + ) } } -- cgit v1.2.3