aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/player.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src/player.rs')
-rwxr-xr-xazalea-client/src/player.rs6
1 files changed, 3 insertions, 3 deletions
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<AddPlayerEvent>,
- entity_infos: Res<EntityInfos>,
+ entity_uuid_index: Res<EntityUuidIndex>,
) {
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()));