diff options
| author | mat <git@matdoes.dev> | 2023-07-26 00:45:06 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-07-26 00:45:06 -0500 |
| commit | 39943447f68fede8e8ed6799cc8eee7bddecf945 (patch) | |
| tree | c5531085154982901b6c06b1fb63412efe914502 /azalea | |
| parent | 22ea8c60fed17e48a591bcbb82808fed55509386 (diff) | |
| download | azalea-drasl-39943447f68fede8e8ed6799cc8eee7bddecf945.tar.xz | |
fix querying multiple components in entity_by
Diffstat (limited to 'azalea')
| -rw-r--r-- | azalea/examples/testbot.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs index 9129eb3f..6fb50964 100644 --- a/azalea/examples/testbot.rs +++ b/azalea/examples/testbot.rs @@ -99,7 +99,7 @@ async fn handle(mut bot: Client, event: Event, _state: State) -> anyhow::Result< // .find(|e| e.name() == Some(sender)); // let entity = bot.entity_by::<With<Player>>(|name: &Name| name == sender); let entity = bot.entity_by::<With<Player>, (&GameProfileComponent,)>( - |profile: &&GameProfileComponent| { + |(profile,): &(&GameProfileComponent,)| { println!("entity {profile:?}"); profile.name == sender }, |
