From d99ba0da5500a1a4917bf9c8c9e93e2caa4ada99 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 23 Jul 2023 22:17:17 -0500 Subject: clean up azalea-entity a little --- azalea-client/src/player.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea-client/src/player.rs') diff --git a/azalea-client/src/player.rs b/azalea-client/src/player.rs index 25ba0d8c..a94340ab 100755 --- a/azalea-client/src/player.rs +++ b/azalea-client/src/player.rs @@ -1,7 +1,7 @@ use azalea_auth::game_profile::GameProfile; use azalea_chat::FormattedText; use azalea_core::GameMode; -use azalea_entity::EntityInfos; +use azalea_entity::indexing::EntityUuidIndex; use bevy_ecs::{ event::EventReader, system::{Commands, Res}, @@ -35,10 +35,10 @@ pub struct PlayerInfo { pub fn retroactively_add_game_profile_component( mut commands: Commands, mut events: EventReader, - entity_infos: Res, + entity_uuid_index: Res, ) { for event in events.iter() { - if let Some(entity) = entity_infos.get_entity_by_uuid(&event.info.uuid) { + if let Some(entity) = entity_uuid_index.get(&event.info.uuid) { commands .entity(entity) .insert(GameProfileComponent(event.info.profile.clone())); -- cgit v1.2.3