diff --git a/minecraft-server/src/world/mod.rs b/minecraft-server/src/world/mod.rs index b7c04ae7..175e983c 100644 --- a/minecraft-server/src/world/mod.rs +++ b/minecraft-server/src/world/mod.rs @@ -110,8 +110,9 @@ impl World { self.entities.observe_entities(chunk, observer).await } + // TODO: add version that doesn't notify modified entity pub async fn mutate_entity(&self, eid: Eid, mutator: impl FnOnce(&mut AnyEntity) -> (R, EntityChanges)) -> Option { - // TODO change events + // TODO: change events match self.entities.mutate_entity(eid, mutator).await { Some((r, changes)) => { // TODO: make only one lookup and group into a single message with optional fields