From 39943447f68fede8e8ed6799cc8eee7bddecf945 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 26 Jul 2023 00:45:06 -0500 Subject: fix querying multiple components in entity_by --- azalea/examples/testbot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea/examples') 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::>(|name: &Name| name == sender); let entity = bot.entity_by::, (&GameProfileComponent,)>( - |profile: &&GameProfileComponent| { + |(profile,): &(&GameProfileComponent,)| { println!("entity {profile:?}"); profile.name == sender }, -- cgit v1.2.3