diff options
| author | mat <git@matdoes.dev> | 2026-03-30 10:02:22 +0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-05-07 08:05:58 -1200 |
| commit | 4af9762854aad30b7fdc40640618e465197f2148 (patch) | |
| tree | b3f00274ed277ed4a1fb6363b1f11e9f430c7535 /azalea/src/pathfinder/simulation.rs | |
| parent | ddef37118448b639ff56b86ae339e8913cb4ed11 (diff) | |
| download | azalea-drasl-4af9762854aad30b7fdc40640618e465197f2148.tar.xz | |
rename PhysicsState to ClientMovementState and add utility functions for it
Diffstat (limited to 'azalea/src/pathfinder/simulation.rs')
| -rw-r--r-- | azalea/src/pathfinder/simulation.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea/src/pathfinder/simulation.rs b/azalea/src/pathfinder/simulation.rs index 82d93370..89fefaa9 100644 --- a/azalea/src/pathfinder/simulation.rs +++ b/azalea/src/pathfinder/simulation.rs @@ -3,7 +3,7 @@ use std::sync::Arc; use azalea_client::{ - PhysicsState, interact::BlockStatePredictionHandler, local_player::LocalGameMode, + ClientMovementState, interact::BlockStatePredictionHandler, local_player::LocalGameMode, mining::MineBundle, }; use azalea_core::{ @@ -24,7 +24,7 @@ use uuid::Uuid; pub struct SimulatedPlayerBundle { pub position: Position, pub physics: Physics, - pub physics_state: PhysicsState, + pub physics_state: ClientMovementState, pub look_direction: LookDirection, pub attributes: Attributes, pub inventory: Inventory, @@ -37,7 +37,7 @@ impl SimulatedPlayerBundle { SimulatedPlayerBundle { position: Position::new(position), physics: Physics::new(&dimensions, position), - physics_state: PhysicsState::default(), + physics_state: ClientMovementState::default(), look_direction: LookDirection::default(), attributes: Attributes::new(EntityKind::Player), inventory: Inventory::default(), |
