From 3d717b63e529938b5ca1bd842dc57e2332820ad0 Mon Sep 17 00:00:00 2001 From: Aditya Kumar <117935160+AS1100K@users.noreply.github.com> Date: Fri, 12 Jul 2024 16:54:47 +0530 Subject: [PATCH] fix: Chunk Storage Error (#158) --- azalea-world/src/chunk_storage.rs | 4 ++-- 1 file 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