diff options
Diffstat (limited to 'azalea/src/pathfinder/simulation.rs')
| -rw-r--r-- | azalea/src/pathfinder/simulation.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/azalea/src/pathfinder/simulation.rs b/azalea/src/pathfinder/simulation.rs index e8ba4dbd..a24a1acb 100644 --- a/azalea/src/pathfinder/simulation.rs +++ b/azalea/src/pathfinder/simulation.rs @@ -2,9 +2,7 @@ use std::sync::Arc; -use azalea_client::{ - inventory::InventoryComponent, packet_handling::game::SendPacketEvent, PhysicsState, -}; +use azalea_client::{inventory::Inventory, packet_handling::game::SendPacketEvent, PhysicsState}; use azalea_core::{position::Vec3, resource_location::ResourceLocation, tick::GameTick}; use azalea_entity::{ attributes::AttributeInstance, Attributes, EntityDimensions, LookDirection, Physics, Position, @@ -22,7 +20,7 @@ pub struct SimulatedPlayerBundle { pub physics_state: PhysicsState, pub look_direction: LookDirection, pub attributes: Attributes, - pub inventory: InventoryComponent, + pub inventory: Inventory, } impl SimulatedPlayerBundle { @@ -41,7 +39,7 @@ impl SimulatedPlayerBundle { speed: AttributeInstance::new(0.1), attack_speed: AttributeInstance::new(4.0), }, - inventory: InventoryComponent::default(), + inventory: Inventory::default(), } } } @@ -108,7 +106,7 @@ fn create_simulation_player_complete_bundle( partial_instance: Arc::new(RwLock::new(PartialInstance::default())), instance: instance.clone(), }, - InventoryComponent::default(), + Inventory::default(), ) } |
