diff options
| author | mat <git@matdoes.dev> | 2026-03-21 08:05:27 +0330 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-03-21 11:35:31 +0700 |
| commit | 88606d9ce9e13fcdd4ab5ce26e52630dee614c1e (patch) | |
| tree | ee9d1db9871eba381a876e7472946f267280a8ff /azalea-client | |
| parent | 7965bb7953bfcabd475e213db335d90e0db28497 (diff) | |
| download | azalea-drasl-88606d9ce9e13fcdd4ab5ce26e52630dee614c1e.tar.xz | |
Extensible ChunkStorage
Co-authored-by: sdwhw <191973436+sdwhw@users.noreply.github.com>
Diffstat (limited to 'azalea-client')
| -rw-r--r-- | azalea-client/src/local_player.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/plugins/chunks.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/plugins/packet/game/mod.rs | 4 | ||||
| -rw-r--r-- | azalea-client/tests/simulation/login_to_dimension_with_same_name.rs | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/azalea-client/src/local_player.rs b/azalea-client/src/local_player.rs index e19ffd1f..274f9fcd 100644 --- a/azalea-client/src/local_player.rs +++ b/azalea-client/src/local_player.rs @@ -137,7 +137,7 @@ impl WorldHolder { WorldHolder { shared, partial: Arc::new(RwLock::new(PartialWorld::new( - azalea_world::chunk_storage::calculate_chunk_storage_range( + azalea_world::chunk::calculate_chunk_storage_range( client_information.view_distance.into(), ), Some(entity), 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), diff --git a/azalea-client/tests/simulation/login_to_dimension_with_same_name.rs b/azalea-client/tests/simulation/login_to_dimension_with_same_name.rs index ef67130f..ecd6369b 100644 --- a/azalea-client/tests/simulation/login_to_dimension_with_same_name.rs +++ b/azalea-client/tests/simulation/login_to_dimension_with_same_name.rs @@ -117,7 +117,7 @@ fn generic_test_login_to_dimension_with_same_name(using_respawn: bool) { .shared .read() .chunks - .height, + .height(), 256 ); |
