From 88606d9ce9e13fcdd4ab5ce26e52630dee614c1e Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 21 Mar 2026 08:05:27 +0330 Subject: Extensible ChunkStorage Co-authored-by: sdwhw <191973436+sdwhw@users.noreply.github.com> --- azalea-client/src/plugins/chunks.rs | 2 +- azalea-client/src/plugins/packet/game/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea-client/src/plugins') diff --git a/azalea-client/src/plugins/chunks.rs b/azalea-client/src/plugins/chunks.rs index 0937c2ef..50f9ddf8 100644 --- a/azalea-client/src/plugins/chunks.rs +++ b/azalea-client/src/plugins/chunks.rs @@ -99,7 +99,7 @@ pub fn handle_receive_chunk_event( ) { error!( "Couldn't set chunk data: {e}. World height: {}", - world.chunks.height + world.chunks.height() ); } } diff --git a/azalea-client/src/plugins/packet/game/mod.rs b/azalea-client/src/plugins/packet/game/mod.rs index e7e709e8..ecc1bc2f 100644 --- a/azalea-client/src/plugins/packet/game/mod.rs +++ b/azalea-client/src/plugins/packet/game/mod.rs @@ -281,7 +281,7 @@ impl GamePacketHandler<'_> { // will be in the `worlds`) *world_holder.partial.write() = PartialWorld::new( - azalea_world::chunk_storage::calculate_chunk_storage_range( + azalea_world::chunk::calculate_chunk_storage_range( client_information.view_distance.into(), ), // this argument makes it so other clients don't update this player entity in a @@ -1422,7 +1422,7 @@ impl GamePacketHandler<'_> { // those will be in the `worlds`) *world_holder.partial.write() = PartialWorld::new( - azalea_world::chunk_storage::calculate_chunk_storage_range( + azalea_world::chunk::calculate_chunk_storage_range( client_information.view_distance.into(), ), Some(self.player), -- cgit v1.2.3