aboutsummaryrefslogtreecommitdiff
path: root/azalea-physics/src/fluids.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-06-11 22:58:41 -0630
committermat <git@matdoes.dev>2025-06-11 22:58:41 -0630
commita2606569bb79867d07a075bcf7b05730e4264d72 (patch)
treefb97fb52aa0c4d7575f6bd5e4e36c2f01c87f942 /azalea-physics/src/fluids.rs
parent89ddd5e85f4f2fb98697df15528df6e07a3ddd07 (diff)
downloadazalea-drasl-a2606569bb79867d07a075bcf7b05730e4264d72.tar.xz
use owned instead of borrowed Vec3 more
Diffstat (limited to 'azalea-physics/src/fluids.rs')
-rw-r--r--azalea-physics/src/fluids.rs4
1 files changed, 2 insertions, 2 deletions
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 {