From 99659bd9a33fad276c2a5ecfb68f094c4f544d48 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 1 Jun 2025 21:01:31 -0545 Subject: add CustomPathfinderState --- azalea-client/src/entity_query.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'azalea-client/src/entity_query.rs') diff --git a/azalea-client/src/entity_query.rs b/azalea-client/src/entity_query.rs index 409253a3..ef11813e 100644 --- a/azalea-client/src/entity_query.rs +++ b/azalea-client/src/entity_query.rs @@ -110,11 +110,7 @@ impl Client { pub trait EntityPredicate { fn find(&self, ecs_lock: Arc>, instance_name: &InstanceName) -> Option; - fn find_all<'a>( - &'a self, - ecs_lock: Arc>, - instance_name: &InstanceName, - ) -> Vec; + fn find_all(&self, ecs_lock: Arc>, instance_name: &InstanceName) -> Vec; } impl EntityPredicate for F where @@ -129,11 +125,7 @@ where .map(|(e, _, _)| e) } - fn find_all<'a>( - &'a self, - ecs_lock: Arc>, - instance_name: &InstanceName, - ) -> Vec { + fn find_all(&self, ecs_lock: Arc>, instance_name: &InstanceName) -> Vec { let mut ecs = ecs_lock.lock(); let mut query = ecs.query_filtered::<(Entity, &InstanceName, Q), Filter>(); query -- cgit v1.2.3