From 0f9492ff38faab191a181361b8748c45b459fb9d Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 28 Nov 2023 19:27:49 -0600 Subject: [PATCH] slightly change Client::partial_world example --- azalea-client/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index dde6ffd3..869ab0f3 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -476,7 +476,7 @@ impl Client { /// # use azalea_core::position::ChunkPos; /// # fn example(client: &azalea_client::Client) { /// let world = client.partial_world(); - /// let is_0_0_loaded = world.read().chunks.in_range(&ChunkPos::new(0, 0)); + /// let is_0_0_loaded = world.read().chunks.limited_get(&ChunkPos::new(0, 0)).is_some(); /// # } pub fn partial_world(&self) -> Arc> { let instance_holder = self.component::();