diff options
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; |
