Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mubelotix committed Nov 15, 2023
1 parent b7d79cf commit 84d6c21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion minecraft-server/src/world/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<R>(&self, eid: Eid, mutator: impl FnOnce(&mut AnyEntity) -> (R, EntityChanges)) -> Option<R> {
// 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
Expand Down

0 comments on commit 84d6c21

Please sign in to comment.