diff options
Diffstat (limited to 'azalea-entity/src/plugin/relative_updates.rs')
| -rw-r--r-- | azalea-entity/src/plugin/relative_updates.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-entity/src/plugin/relative_updates.rs b/azalea-entity/src/plugin/relative_updates.rs index f80ccddc..53eb4c95 100644 --- a/azalea-entity/src/plugin/relative_updates.rs +++ b/azalea-entity/src/plugin/relative_updates.rs @@ -18,7 +18,7 @@ use std::sync::Arc; use azalea_core::entity_id::MinecraftEntityId; -use azalea_world::PartialInstance; +use azalea_world::PartialWorld; use bevy_ecs::prelude::*; use derive_more::{Deref, DerefMut}; use parking_lot::RwLock; @@ -38,13 +38,13 @@ use crate::LocalEntity; /// other clients within render distance will get too. You usually don't need /// this when the change isn't relative either. pub struct RelativeEntityUpdate { - pub partial_world: Arc<RwLock<PartialInstance>>, + pub partial_world: Arc<RwLock<PartialWorld>>, // a function that takes the entity and updates it pub update: Box<dyn FnOnce(&mut EntityWorldMut) + Send + Sync>, } impl RelativeEntityUpdate { pub fn new( - partial_world: Arc<RwLock<PartialInstance>>, + partial_world: Arc<RwLock<PartialWorld>>, update: impl FnOnce(&mut EntityWorldMut) + Send + Sync + 'static, ) -> Self { Self { |
