1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00

fix: Chunk Storage Error (#158)

This commit is contained in:
Aditya Kumar 2024-07-12 16:54:47 +05:30 committed by GitHub
parent cf4e3f609d
commit 3d717b63e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -515,9 +515,9 @@ impl Default for ChunkStorage {
pub fn section_index(y: i32, min_y: i32) -> u32 {
if y < min_y {
#[cfg(debug_assertions)]
panic!("y ({y}) must be at most {min_y}");
warn!("y ({y}) must be at most {min_y}");
#[cfg(not(debug_assertions))]
tracing::error!("y ({y}) must be at least {min_y}")
trace!("y ({y}) must be at least {min_y}")
};
let min_section_index = min_y >> 4;
((y >> 4) - min_section_index) as u32