diff options
| author | mat <git@matdoes.dev> | 2026-03-21 08:05:27 +0330 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-03-21 11:35:31 +0700 |
| commit | 88606d9ce9e13fcdd4ab5ce26e52630dee614c1e (patch) | |
| tree | ee9d1db9871eba381a876e7472946f267280a8ff /azalea/benches | |
| parent | 7965bb7953bfcabd475e213db335d90e0db28497 (diff) | |
| download | azalea-drasl-88606d9ce9e13fcdd4ab5ce26e52630dee614c1e.tar.xz | |
Extensible ChunkStorage
Co-authored-by: sdwhw <191973436+sdwhw@users.noreply.github.com>
Diffstat (limited to 'azalea/benches')
| -rw-r--r-- | azalea/benches/pathfinder.rs | 8 | ||||
| -rw-r--r-- | azalea/benches/physics.rs | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/azalea/benches/pathfinder.rs b/azalea/benches/pathfinder.rs index defd7c18..3adb9903 100644 --- a/azalea/benches/pathfinder.rs +++ b/azalea/benches/pathfinder.rs @@ -46,13 +46,13 @@ fn generate_bedrock_world( chunk.set_block_state( &ChunkBlockPos::new(x, 1, z), BlockKind::Bedrock.into(), - chunks.min_y, + chunks.min_y(), ); if rng.random_bool(0.5) { chunk.set_block_state( &ChunkBlockPos::new(x, 2, z), BlockKind::Bedrock.into(), - chunks.min_y, + chunks.min_y(), ); } } @@ -98,13 +98,13 @@ fn generate_mining_world( let chunk_pos = ChunkPos::new(chunk_x, chunk_z); let chunk = chunks.get(&chunk_pos).unwrap(); let mut chunk = chunk.write(); - for y in chunks.min_y..(chunks.min_y + chunks.height as i32) { + for y in chunks.min_y()..(chunks.min_y() + chunks.height() as i32) { for x in 0..16_u8 { for z in 0..16_u8 { chunk.set_block_state( &ChunkBlockPos::new(x, y, z), BlockKind::Stone.into(), - chunks.min_y, + chunks.min_y(), ); } } diff --git a/azalea/benches/physics.rs b/azalea/benches/physics.rs index 8b15cc6c..430809cc 100644 --- a/azalea/benches/physics.rs +++ b/azalea/benches/physics.rs @@ -33,7 +33,7 @@ fn generate_world(partial_chunks: &mut PartialChunkStorage, size: u32) -> ChunkS chunk.set_block_state( &ChunkBlockPos::new(x, 1, z), BlockKind::Stone.into(), - chunks.min_y, + chunks.min_y(), ); } } |
