diff options
| author | mat <git@matdoes.dev> | 2025-09-28 13:10:04 -0545 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-09-28 13:10:04 -0545 |
| commit | 2c8b7c5c2c9297273abfba8f7743f1bc25f166b1 (patch) | |
| tree | 3d3aded400100c136287fa59293ce26c61644d00 /azalea/examples/nearest_entity.rs | |
| parent | e2ed19c1ed92f0dccc881d835d9ac6e0f7f834c0 (diff) | |
| download | azalea-drasl-2c8b7c5c2c9297273abfba8f7743f1bc25f166b1.tar.xz | |
upgrade bevy to 0.17.0-rc.2
Diffstat (limited to 'azalea/examples/nearest_entity.rs')
| -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 80bb544d..51aa26f6 100644 --- a/azalea/examples/nearest_entity.rs +++ b/azalea/examples/nearest_entity.rs @@ -12,7 +12,7 @@ use azalea_entity::{ }; use bevy_app::Plugin; use bevy_ecs::{ - prelude::{Entity, EventWriter}, + prelude::{Entity, MessageWriter}, query::With, system::Query, }; @@ -39,7 +39,7 @@ fn look_at_everything( bots: Query<Entity, (With<LocalEntity>, With<Player>)>, entities: EntityFinder, entity_positions: Query<(&Position, Option<&EntityDimensions>)>, - mut look_at_event: EventWriter<LookAtEvent>, + mut look_at_event: MessageWriter<LookAtEvent>, ) { for bot_id in bots.iter() { let Some(entity) = entities.nearest_to_entity(bot_id, 16.0) else { |
