diff options
| author | mat <git@matdoes.dev> | 2025-05-09 15:00:12 -1200 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-05-09 15:00:12 -1200 |
| commit | 6a5a88700c3f649fab1abc4a51f6fac9281db874 (patch) | |
| tree | bed73430ba622df59b926f173e35c1d0a7683c60 /azalea-physics/src | |
| parent | e1d3b902ba08170e4ee82c53f216445f57fbc47e (diff) | |
| download | azalea-drasl-6a5a88700c3f649fab1abc4a51f6fac9281db874.tar.xz | |
fix offline-mode cert warnings and improve some docs
Diffstat (limited to 'azalea-physics/src')
| -rw-r--r-- | azalea-physics/src/clip.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/azalea-physics/src/clip.rs b/azalea-physics/src/clip.rs index 96c11d1a..e557b028 100644 --- a/azalea-physics/src/clip.rs +++ b/azalea-physics/src/clip.rs @@ -111,9 +111,11 @@ pub fn clip(chunk_storage: &ChunkStorage, context: ClipContext) -> BlockHitResul let fluid_clip = fluid_shape.clip(&ctx.from, &ctx.to, block_pos); let distance_to_interaction = interaction_clip + .as_ref() .map(|hit| ctx.from.distance_squared_to(&hit.location)) .unwrap_or(f64::MAX); let distance_to_fluid = fluid_clip + .as_ref() .map(|hit| ctx.from.distance_squared_to(&hit.location)) .unwrap_or(f64::MAX); |
