aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src/pathfinder')
-rw-r--r--azalea/src/pathfinder/mod.rs4
-rw-r--r--azalea/src/pathfinder/simulation.rs9
2 files changed, 7 insertions, 6 deletions
diff --git a/azalea/src/pathfinder/mod.rs b/azalea/src/pathfinder/mod.rs
index 7f0bd841..81b2b845 100644
--- a/azalea/src/pathfinder/mod.rs
+++ b/azalea/src/pathfinder/mod.rs
@@ -35,7 +35,7 @@ use astar::{Edge, PathfinderTimeout};
use azalea_block::{BlockState, BlockTrait};
use azalea_client::{
StartSprintEvent, StartWalkEvent,
- inventory::{Inventory, InventorySystems},
+ inventory::InventorySystems,
local_player::InstanceHolder,
mining::{Mining, MiningSystems, StartMiningBlockEvent},
movement::MoveEventsSystems,
@@ -44,7 +44,7 @@ use azalea_core::{
position::{BlockPos, Vec3},
tick::GameTick,
};
-use azalea_entity::{LocalEntity, Physics, Position, metadata::Player};
+use azalea_entity::{LocalEntity, Physics, Position, inventory::Inventory, metadata::Player};
use azalea_physics::{PhysicsSystems, get_block_pos_below_that_affects_movement};
use azalea_world::{InstanceContainer, InstanceName};
use bevy_app::{PreUpdate, Update};
diff --git a/azalea/src/pathfinder/simulation.rs b/azalea/src/pathfinder/simulation.rs
index 3b8a46cc..df049b3e 100644
--- a/azalea/src/pathfinder/simulation.rs
+++ b/azalea/src/pathfinder/simulation.rs
@@ -3,12 +3,13 @@
use std::sync::Arc;
use azalea_client::{
- PhysicsState, interact::BlockStatePredictionHandler, inventory::Inventory,
- local_player::LocalGameMode, mining::MineBundle,
+ PhysicsState, interact::BlockStatePredictionHandler, local_player::LocalGameMode,
+ mining::MineBundle,
};
use azalea_core::{game_type::GameMode, identifier::Identifier, position::Vec3, tick::GameTick};
use azalea_entity::{
- Attributes, LookDirection, Physics, Position, default_attributes, dimensions::EntityDimensions,
+ Attributes, LookDirection, Physics, Position, dimensions::EntityDimensions,
+ inventory::Inventory,
};
use azalea_registry::EntityKind;
use azalea_world::{ChunkStorage, Instance, InstanceContainer, MinecraftEntityId, PartialInstance};
@@ -36,7 +37,7 @@ impl SimulatedPlayerBundle {
physics: Physics::new(&dimensions, position),
physics_state: PhysicsState::default(),
look_direction: LookDirection::default(),
- attributes: default_attributes(EntityKind::Player),
+ attributes: Attributes::new(EntityKind::Player),
inventory: Inventory::default(),
}
}