diff options
| author | mat <git@matdoes.dev> | 2023-09-14 16:48:21 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-09-14 16:48:21 -0500 |
| commit | 83784d5a350168edaade4620122c2c6d46bc81a2 (patch) | |
| tree | e126bb4849414fff78d24c65f93376f07f44e634 /azalea/examples | |
| parent | dea4a656a574318fc011e0545046b0d78b0e816e (diff) | |
| download | azalea-drasl-83784d5a350168edaade4620122c2c6d46bc81a2.tar.xz | |
rename Local to LocalEntity
Diffstat (limited to 'azalea/examples')
| -rw-r--r-- | azalea/examples/nearest_entity.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/examples/nearest_entity.rs b/azalea/examples/nearest_entity.rs index 22a8b863..2105d29e 100644 --- a/azalea/examples/nearest_entity.rs +++ b/azalea/examples/nearest_entity.rs @@ -3,7 +3,7 @@ use azalea::ClientBuilder; use azalea::{Bot, LookAtEvent}; use azalea_client::Account; use azalea_entity::metadata::{ItemItem, Player}; -use azalea_entity::{EyeHeight, Local, Position}; +use azalea_entity::{EyeHeight, LocalEntity, Position}; use bevy_app::{FixedUpdate, Plugin}; use bevy_ecs::{ prelude::{Entity, EventWriter}, @@ -30,7 +30,7 @@ impl Plugin for LookAtStuffPlugin { } fn look_at_everything( - bots: Query<Entity, (With<Local>, With<Player>)>, + bots: Query<Entity, (With<LocalEntity>, With<Player>)>, entities: EntityFinder, entity_positions: Query<(&Position, Option<&EyeHeight>)>, mut look_at_event: EventWriter<LookAtEvent>, |
