From d0505f7de30e4a9a330ef99d0082849ee44723e0 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 2 Oct 2023 17:51:38 -0500 Subject: optimize pathfinder more --- azalea-client/src/local_player.rs | 2 +- azalea-client/src/packet_handling/game.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea-client/src') diff --git a/azalea-client/src/local_player.rs b/azalea-client/src/local_player.rs index 22ea2232..c2b16434 100644 --- a/azalea-client/src/local_player.rs +++ b/azalea-client/src/local_player.rs @@ -127,7 +127,7 @@ impl InstanceHolder { InstanceHolder { instance: world, partial_instance: Arc::new(RwLock::new(PartialInstance::new( - azalea_world::calculate_chunk_storage_range( + azalea_world::chunk_storage::calculate_chunk_storage_range( client_information.view_distance.into(), ), Some(entity), diff --git a/azalea-client/src/packet_handling/game.rs b/azalea-client/src/packet_handling/game.rs index 049eab03..46eb21fe 100644 --- a/azalea-client/src/packet_handling/game.rs +++ b/azalea-client/src/packet_handling/game.rs @@ -267,7 +267,7 @@ pub fn process_packet_events(ecs: &mut World) { // instance_container) *instance_holder.partial_instance.write() = PartialInstance::new( - azalea_world::calculate_chunk_storage_range( + azalea_world::chunk_storage::calculate_chunk_storage_range( client_information.view_distance.into(), ), // this argument makes it so other clients don't update this player entity @@ -1287,7 +1287,7 @@ pub fn process_packet_events(ecs: &mut World) { // (when we add chunks or entities those will be in the // instance_container) *instance_holder.partial_instance.write() = PartialInstance::new( - azalea_world::calculate_chunk_storage_range( + azalea_world::chunk_storage::calculate_chunk_storage_range( client_information.view_distance.into(), ), Some(player_entity), -- cgit v1.2.3