diff options
| author | mat <git@matdoes.dev> | 2023-12-03 02:41:09 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-12-03 02:41:09 -0600 |
| commit | 1f46ef8c115db0c53e21dfb6a3e633825c6747c3 (patch) | |
| tree | 74e5fa5e76ac95bb68e6d07b999187e5a4e617c0 /azalea/src/pathfinder | |
| parent | 0713223e1204438f839566ce8cf954f0c9ff7f91 (diff) | |
| download | azalea-drasl-1f46ef8c115db0c53e21dfb6a3e633825c6747c3.tar.xz | |
make it so plugins can send and receive packets during the login state
Diffstat (limited to 'azalea/src/pathfinder')
| -rw-r--r-- | azalea/src/pathfinder/simulation.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/azalea/src/pathfinder/simulation.rs b/azalea/src/pathfinder/simulation.rs index 0cffb416..c6fe096f 100644 --- a/azalea/src/pathfinder/simulation.rs +++ b/azalea/src/pathfinder/simulation.rs @@ -2,7 +2,9 @@ use std::{sync::Arc, time::Duration}; -use azalea_client::{inventory::InventoryComponent, PhysicsState}; +use azalea_client::{ + inventory::InventoryComponent, packet_handling::game::SendPacketEvent, PhysicsState, +}; use azalea_core::{position::Vec3, resource_location::ResourceLocation}; use azalea_entity::{ attributes::AttributeInstance, metadata::Sprinting, Attributes, EntityDimensions, Physics, @@ -77,7 +79,7 @@ impl Simulation { .cloned() .collect(), }) - .add_event::<azalea_client::SendPacketEvent>(); + .add_event::<SendPacketEvent>(); app.edit_schedule(bevy_app::Main, |schedule| { schedule.set_executor_kind(bevy_ecs::schedule::ExecutorKind::SingleThreaded); |
