diff options
| author | mat <git@matdoes.dev> | 2025-03-27 21:28:08 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-03-27 21:28:13 +0000 |
| commit | 02de98240f3642019b1c8104b00bc4a9d6d17e71 (patch) | |
| tree | 1fd7074164a9cb1eb6d1012e4662cef61f10891d /azalea-world/src | |
| parent | 37cde3ad3245675c54e70a4ded362f2a60f0d8a4 (diff) | |
| download | azalea-drasl-02de98240f3642019b1c8104b00bc4a9d6d17e71.tar.xz | |
fix not replying to ping packets in config state
Diffstat (limited to 'azalea-world/src')
| -rwxr-xr-x | azalea-world/src/chunk_storage.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-world/src/chunk_storage.rs b/azalea-world/src/chunk_storage.rs index d6243b87..39cbc84f 100755 --- a/azalea-world/src/chunk_storage.rs +++ b/azalea-world/src/chunk_storage.rs @@ -343,7 +343,7 @@ impl Chunk { let mut heightmaps = HashMap::new(); for (kind, data) in heightmaps_data { - let data: Box<[u64]> = data.iter().map(|x| *x as u64).collect(); + let data: Box<[u64]> = data.iter().copied().collect(); let heightmap = Heightmap::new(*kind, dimension_height, min_y, data); heightmaps.insert(*kind, heightmap); } |
