aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples/testbot/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/examples/testbot/commands.rs')
-rw-r--r--azalea/examples/testbot/commands.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/examples/testbot/commands.rs b/azalea/examples/testbot/commands.rs
index 1616b82e..9d9d9b8a 100644
--- a/azalea/examples/testbot/commands.rs
+++ b/azalea/examples/testbot/commands.rs
@@ -32,8 +32,8 @@ impl CommandSource {
pub fn entity(&mut self) -> Option<Entity> {
let username = self.chat.sender()?;
self.bot
- .any_entity_by::<With<Player>, &GameProfileComponent>(
- |profile: &&GameProfileComponent| profile.name == username,
+ .any_entity_by::<&GameProfileComponent, With<Player>>(
+ |profile: &GameProfileComponent| profile.name == username,
)
}
}