From 51963990bc0cbbbca388b2ed015fd64ff6492d7b Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 18 Sep 2023 23:25:18 -0500 Subject: fix entities not always being despawned after merge --- azalea-world/src/heightmap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-world/src') diff --git a/azalea-world/src/heightmap.rs b/azalea-world/src/heightmap.rs index 81aeb1e2..5fa3f260 100644 --- a/azalea-world/src/heightmap.rs +++ b/azalea-world/src/heightmap.rs @@ -122,7 +122,7 @@ impl Heightmap { /// Get an iterator over the top available block positions in this /// heightmap. - pub fn iter_first_available<'a>(&'a self) -> impl Iterator + 'a { + pub fn iter_first_available(&self) -> impl Iterator + '_ { self.data.iter().enumerate().map(move |(index, height)| { let x = (index % 16) as u8; let z = (index / 16) as u8; @@ -131,7 +131,7 @@ impl Heightmap { } /// Get an iterator over the top block positions in this heightmap. - pub fn iter_highest_taken<'a>(&'a self) -> impl Iterator + 'a { + pub fn iter_highest_taken(&self) -> impl Iterator + '_ { self.data.iter().enumerate().map(move |(index, height)| { let x = (index % 16) as u8; let z = (index / 16) as u8; -- cgit v1.2.3