Skip to content

Commit

Permalink
fix: Chunk Storage Error (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
AS1100K authored Jul 12, 2024
1 parent cf4e3f6 commit 3d717b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azalea-world/src/chunk_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d717b6

Please sign in to comment.