From a2606569bb79867d07a075bcf7b05730e4264d72 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 11 Jun 2025 22:58:41 -0630 Subject: use owned instead of borrowed Vec3 more --- azalea-physics/src/fluids.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-physics/src/fluids.rs') diff --git a/azalea-physics/src/fluids.rs b/azalea-physics/src/fluids.rs index 5ea6194a..ea0f12e2 100644 --- a/azalea-physics/src/fluids.rs +++ b/azalea-physics/src/fluids.rs @@ -32,7 +32,7 @@ pub fn update_in_water_state_and_do_fluid_pushing( physics.water_fluid_height = 0.; physics.lava_fluid_height = 0.; - update_in_water_state_and_do_water_current_pushing(&mut physics, &world, position); + update_in_water_state_and_do_water_current_pushing(&mut physics, &world, *position); // right now doing registries.dimension_type() clones the entire registry which // is very inefficient, so for now we're doing this instead @@ -63,7 +63,7 @@ pub fn update_in_water_state_and_do_fluid_pushing( fn update_in_water_state_and_do_water_current_pushing( physics: &mut Physics, world: &Instance, - _position: &Position, + _position: Position, ) { // TODO: implement vehicles and boats // if vehicle == AbstractBoat { -- cgit v1.2.3