diff options
| author | mat <git@matdoes.dev> | 2023-09-18 23:25:18 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-09-18 23:25:22 -0500 |
| commit | 51963990bc0cbbbca388b2ed015fd64ff6492d7b (patch) | |
| tree | a06f6b78f6f3954c230a9c57050467bb20ebe232 /azalea-world | |
| parent | e6941b6a24deed617d09c6e08ba65278bb3bcf25 (diff) | |
| download | azalea-drasl-51963990bc0cbbbca388b2ed015fd64ff6492d7b.tar.xz | |
fix entities not always being despawned after merge
Diffstat (limited to 'azalea-world')
| -rw-r--r-- | azalea-world/src/heightmap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<Item = ChunkBlockPos> + 'a { + pub fn iter_first_available(&self) -> impl Iterator<Item = ChunkBlockPos> + '_ { 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<Item = ChunkBlockPos> + 'a { + pub fn iter_highest_taken(&self) -> impl Iterator<Item = ChunkBlockPos> + '_ { self.data.iter().enumerate().map(move |(index, height)| { let x = (index % 16) as u8; let z = (index / 16) as u8; |
