aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2024-10-23 00:08:13 -0500
committerGitHub <noreply@github.com>2024-10-23 00:08:13 -0500
commit40e4096d2435533eacb817ad5a5e12c7ced8fa5c (patch)
tree937c4024bb7f69b19b6d053e02a9e5b3b02d98aa /azalea/src
parentabc7b43b8c641b6dc4b107bb9624b86235bd36db (diff)
downloadazalea-drasl-40e4096d2435533eacb817ad5a5e12c7ced8fa5c.tar.xz
1.21.2 (#171)
* partially implement 24w35a * start updating to 24w39a + itemcomponent codegen * fix codegen and broken packets to finish updating to 24w39a :D * update to 1.21.2 except for blocks * update ServerboundPlayerInputPacket impl
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/nearest_entity.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/src/nearest_entity.rs b/azalea/src/nearest_entity.rs
index 363c8fb0..415c7266 100644
--- a/azalea/src/nearest_entity.rs
+++ b/azalea/src/nearest_entity.rs
@@ -129,7 +129,7 @@ where
position: &'a Position,
instance_name: &'a InstanceName,
max_distance: f64,
- ) -> impl Iterator<Item = (Entity, f64)> + '_ {
+ ) -> impl Iterator<Item = (Entity, f64)> + 'a {
self.filtered_entities
.iter()
.filter_map(move |(target_entity, e_instance, e_pos)| {
@@ -156,7 +156,7 @@ where
&'a self,
entity: Entity,
max_distance: f64,
- ) -> impl Iterator<Item = (Entity, f64)> + '_ {
+ ) -> impl Iterator<Item = (Entity, f64)> + 'a {
let position;
let instance_name;
if let Ok((pos, instance)) = self.all_entities.get(entity) {