aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src/pathfinder')
-rw-r--r--azalea/src/pathfinder/simulation.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea/src/pathfinder/simulation.rs b/azalea/src/pathfinder/simulation.rs
index 8f198ce8..89a8b3c4 100644
--- a/azalea/src/pathfinder/simulation.rs
+++ b/azalea/src/pathfinder/simulation.rs
@@ -10,7 +10,7 @@ use azalea_core::{
game_type::GameMode, position::Vec3, resource_location::ResourceLocation, tick::GameTick,
};
use azalea_entity::{
- Attributes, EntityDimensions, LookDirection, Physics, Position, default_attributes,
+ Attributes, LookDirection, Physics, Position, default_attributes, dimensions::EntityDimensions,
};
use azalea_registry::EntityKind;
use azalea_world::{ChunkStorage, Instance, InstanceContainer, MinecraftEntityId, PartialInstance};
@@ -35,7 +35,7 @@ impl SimulatedPlayerBundle {
SimulatedPlayerBundle {
position: Position::new(position),
- physics: Physics::new(dimensions, position),
+ physics: Physics::new(&dimensions, position),
physics_state: PhysicsState::default(),
look_direction: LookDirection::default(),
attributes: default_attributes(EntityKind::Player),
@@ -112,7 +112,7 @@ fn create_simulation_player_complete_bundle(
MineBundle::default(),
BlockStatePredictionHandler::default(),
azalea_client::local_player::PermissionLevel::default(),
- azalea_client::local_player::PlayerAbilities::default(),
+ azalea_entity::PlayerAbilities::default(),
)
}