diff options
Diffstat (limited to 'azalea-entity/src/plugin')
| -rw-r--r-- | azalea-entity/src/plugin/indexing.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/azalea-entity/src/plugin/indexing.rs b/azalea-entity/src/plugin/indexing.rs index c4879c4f..f1105d89 100644 --- a/azalea-entity/src/plugin/indexing.rs +++ b/azalea-entity/src/plugin/indexing.rs @@ -61,20 +61,20 @@ impl EntityUuidIndex { } impl EntityIdIndex { - pub fn get(&self, id: &MinecraftEntityId) -> Option<Entity> { - self.entity_by_id.get(id).copied() + pub fn get(&self, id: MinecraftEntityId) -> Option<Entity> { + self.entity_by_id.get(&id).copied() } - pub fn contains_key(&self, id: &MinecraftEntityId) -> bool { - self.entity_by_id.contains_key(id) + pub fn contains_key(&self, id: MinecraftEntityId) -> bool { + self.entity_by_id.contains_key(&id) } pub fn insert(&mut self, id: MinecraftEntityId, entity: Entity) { self.entity_by_id.insert(id, entity); } - pub fn remove(&mut self, id: &MinecraftEntityId) -> Option<Entity> { - self.entity_by_id.remove(id) + pub fn remove(&mut self, id: MinecraftEntityId) -> Option<Entity> { + self.entity_by_id.remove(&id) } } |
