From 83784d5a350168edaade4620122c2c6d46bc81a2 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 14 Sep 2023 16:48:21 -0500 Subject: rename Local to LocalEntity --- azalea-entity/src/plugin/relative_updates.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'azalea-entity/src/plugin/relative_updates.rs') diff --git a/azalea-entity/src/plugin/relative_updates.rs b/azalea-entity/src/plugin/relative_updates.rs index 21b57cff..45b85203 100644 --- a/azalea-entity/src/plugin/relative_updates.rs +++ b/azalea-entity/src/plugin/relative_updates.rs @@ -28,7 +28,7 @@ use derive_more::{Deref, DerefMut}; use log::warn; use parking_lot::RwLock; -use crate::Local; +use crate::LocalEntity; /// An [`EntityCommand`] that applies a "relative update" to an entity, which /// means this update won't be run multiple times by different clients in the @@ -69,7 +69,7 @@ impl EntityCommand for RelativeEntityUpdate { }; let entity_id = *entity_mut.get::().unwrap(); - if entity_mut.contains::() { + if entity_mut.contains::() { // a client tried to update another client, which isn't allowed return; } @@ -99,12 +99,15 @@ impl EntityCommand for RelativeEntityUpdate { } } -/// The [`UpdatesReceived`] component should never be on [`Local`] entities. -/// This warns if an entity has both components. +/// The [`UpdatesReceived`] component should never be on [`LocalEntity`] +/// entities. This warns if an entity has both components. pub fn debug_detect_updates_received_on_local_entities( - query: Query, With)>, + query: Query, With)>, ) { for entity in &query { - warn!("Entity {:?} has both Local and UpdatesReceived", entity); + warn!( + "Entity {:?} has both LocalEntity and UpdatesReceived", + entity + ); } } -- cgit v1.2.3