diff options
| author | mat <git@matdoes.dev> | 2025-06-01 21:01:31 -0545 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-01 21:01:31 -0545 |
| commit | 99659bd9a33fad276c2a5ecfb68f094c4f544d48 (patch) | |
| tree | 531aceb09b3db86dde407e331d5b13bc5d821a4e /azalea-client/src | |
| parent | 1d3a7c969f430a8cea4296930df0d6c04e253747 (diff) | |
| download | azalea-drasl-99659bd9a33fad276c2a5ecfb68f094c4f544d48.tar.xz | |
add CustomPathfinderState
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/entity_query.rs | 12 |
1 files changed, 2 insertions, 10 deletions
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<Q: QueryData, Filter: QueryFilter> { fn find(&self, ecs_lock: Arc<Mutex<World>>, instance_name: &InstanceName) -> Option<Entity>; - fn find_all<'a>( - &'a self, - ecs_lock: Arc<Mutex<World>>, - instance_name: &InstanceName, - ) -> Vec<Entity>; + fn find_all(&self, ecs_lock: Arc<Mutex<World>>, instance_name: &InstanceName) -> Vec<Entity>; } impl<F, Q: QueryData, Filter: QueryFilter> EntityPredicate<Q, Filter> for F where @@ -129,11 +125,7 @@ where .map(|(e, _, _)| e) } - fn find_all<'a>( - &'a self, - ecs_lock: Arc<Mutex<World>>, - instance_name: &InstanceName, - ) -> Vec<Entity> { + fn find_all(&self, ecs_lock: Arc<Mutex<World>>, instance_name: &InstanceName) -> Vec<Entity> { let mut ecs = ecs_lock.lock(); let mut query = ecs.query_filtered::<(Entity, &InstanceName, Q), Filter>(); query |
