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/src | |
| 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/src')
| -rw-r--r-- | azalea/src/pathfinder/world.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/src/pathfinder/world.rs b/azalea/src/pathfinder/world.rs index 98b22d70..6c5d84d2 100644 --- a/azalea/src/pathfinder/world.rs +++ b/azalea/src/pathfinder/world.rs @@ -110,7 +110,7 @@ pub struct SectionBitsets { impl CachedWorld { pub fn new(world_lock: Arc<RwLock<World>>, origin: BlockPos) -> Self { - let min_y = world_lock.read().chunks.min_y; + let min_y = world_lock.read().chunks.min_y(); Self { origin, min_y, @@ -145,7 +145,7 @@ impl CachedWorld { let chunk_pos = ChunkPos::new(section_pos.x as i32, section_pos.z as i32); let section_index = - azalea_world::chunk_storage::section_index(section_pos.y * 16, self.min_y) as usize; + azalea_world::chunk::section_index(section_pos.y * 16, self.min_y) as usize; let mut cache_idx = 0; |
