diff options
Diffstat (limited to 'azalea/examples')
| -rw-r--r-- | azalea/examples/testbot/commands.rs | 7 |
1 files changed, 4 insertions, 3 deletions
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<Entity> { let username = self.chat.sender()?; - self.bot.entity_by::<With<Player>, &GameProfileComponent>( - |profile: &&GameProfileComponent| profile.name == username, - ) + self.bot + .any_entity_by::<With<Player>, &GameProfileComponent>( + |profile: &&GameProfileComponent| profile.name == username, + ) } } |
