diff options
| author | Aditya Kumar <117935160+AS1100K@users.noreply.github.com> | 2024-07-12 16:54:47 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-12 06:24:47 -0500 |
| commit | 3d717b63e529938b5ca1bd842dc57e2332820ad0 (patch) | |
| tree | 635087eb6d0c19fa7c2cfab4418891811ceed025 | |
| parent | cf4e3f609d137dd47595560e86a1075a1ce91eff (diff) | |
| download | azalea-drasl-3d717b63e529938b5ca1bd842dc57e2332820ad0.tar.xz | |
fix: Chunk Storage Error (#158)
| -rwxr-xr-x | azalea-world/src/chunk_storage.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-world/src/chunk_storage.rs b/azalea-world/src/chunk_storage.rs index 512f231b..f1239f8a 100755 --- a/azalea-world/src/chunk_storage.rs +++ b/azalea-world/src/chunk_storage.rs @@ -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 |
