diff options
| author | mat <git@matdoes.dev> | 2025-09-28 15:31:17 +1100 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-09-28 15:31:17 +1100 |
| commit | 63bef6486dc1f3c9ef4b4f0d71e139d7035b6432 (patch) | |
| tree | 59c65b9678caee02c7933fc09779c1ba0ad39874 /azalea-client/src/test_utils/simulation.rs | |
| parent | dfeb0880eeb833ca6653fef197318fa985009cfb (diff) | |
| download | azalea-drasl-63bef6486dc1f3c9ef4b4f0d71e139d7035b6432.tar.xz | |
cleanup some azalea-client tests
Diffstat (limited to 'azalea-client/src/test_utils/simulation.rs')
| -rw-r--r-- | azalea-client/src/test_utils/simulation.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea-client/src/test_utils/simulation.rs b/azalea-client/src/test_utils/simulation.rs index 4eff4454..1fcc80b0 100644 --- a/azalea-client/src/test_utils/simulation.rs +++ b/azalea-client/src/test_utils/simulation.rs @@ -128,7 +128,7 @@ impl Simulation { self.app.world().get::<T>(self.entity).is_some() } pub fn with_component<T: Component>(&self, f: impl FnOnce(&T)) { - f(&mut self.app.world().entity(self.entity).get::<T>().unwrap()); + f(self.app.world().entity(self.entity).get::<T>().unwrap()); } pub fn with_component_mut<T: Component<Mutability = Mutable>>( &mut self, |
