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:
parent
cf4e3f609d
commit
3d717b63e5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue