diff options
| author | mat <git@matdoes.dev> | 2023-10-02 17:51:38 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-10-02 17:51:38 -0500 |
| commit | d0505f7de30e4a9a330ef99d0082849ee44723e0 (patch) | |
| tree | f91879b0423eb0329efd2cb12a10a4e98b3b366d /azalea-client/src | |
| parent | c3d27487cae6af5d593193b922d1e81e93a1c45d (diff) | |
| download | azalea-drasl-d0505f7de30e4a9a330ef99d0082849ee44723e0.tar.xz | |
optimize pathfinder more
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/local_player.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/packet_handling/game.rs | 4 |
2 files changed, 3 insertions, 3 deletions
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), |
