From 21c2b501f9a7653a34477ebdfd011befdcd4d0d8 Mon Sep 17 00:00:00 2001 From: Bryan Date: Sat, 22 Aug 2026 10:54:13 +0200 Subject: [PATCH] chore: remove the unused get_fluid_collisions (#3009) --- crates/pumpkin/src/world/mod.rs | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/crates/pumpkin/src/world/mod.rs b/crates/pumpkin/src/world/mod.rs index 000ec66a4..e0ba0f75c 100644 --- a/crates/pumpkin/src/world/mod.rs +++ b/crates/pumpkin/src/world/mod.rs @@ -1787,34 +1787,6 @@ impl World { } } - pub fn get_fluid_collisions(self: &Arc, bounding_box: BoundingBox) -> Vec<&Fluid> { - let mut collisions = Vec::new(); - - let min = bounding_box.min_block_pos(); - - let max = bounding_box.max_block_pos(); - - for x in min.0.x..=max.0.x { - for y in min.0.y..=max.0.y { - for z in min.0.z..=max.0.z { - let pos = BlockPos::new(x, y, z); - - let (fluid, state) = self.get_fluid_and_fluid_state(&pos); - - if fluid.id != Fluid::EMPTY.id { - let height = f64::from(state.height); - - if height >= bounding_box.min.y { - collisions.push(fluid); - } - } - } - } - } - - collisions - } - pub fn check_fluid_collision(self: &Arc, bounding_box: BoundingBox) -> bool { let min = bounding_box.min_block_pos();