aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/local_player.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-07-23 23:21:08 -0500
committermat <git@matdoes.dev>2023-07-23 23:21:08 -0500
commit22ea8c60fed17e48a591bcbb82808fed55509386 (patch)
treea85be1738270f7fb2a133b20629f2db0464e58f2 /azalea-client/src/local_player.rs
parent15acf1347727b84472e6a8a1c7a4f51cd3163f01 (diff)
downloadazalea-drasl-22ea8c60fed17e48a591bcbb82808fed55509386.tar.xz
fix sometimes not receiving chunks
Diffstat (limited to 'azalea-client/src/local_player.rs')
-rw-r--r--azalea-client/src/local_player.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/azalea-client/src/local_player.rs b/azalea-client/src/local_player.rs
index 594513db..8317a72d 100644
--- a/azalea-client/src/local_player.rs
+++ b/azalea-client/src/local_player.rs
@@ -105,7 +105,9 @@ impl LocalPlayer {
world,
partial_instance: Arc::new(RwLock::new(PartialInstance::new(
- client_information.view_distance.into(),
+ azalea_world::calculate_chunk_storage_range(
+ client_information.view_distance.into(),
+ ),
Some(entity),
))),