Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Update minecraft-server/src/world/collisions.rs
Browse files Browse the repository at this point in the history
Co-authored-by: DimitriTimoz <[email protected]>
  • Loading branch information
Mubelotix and DimitriTimoz authored Nov 18, 2023
1 parent 5258bfd commit 400d2f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions minecraft-server/src/world/collisions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ use super::*;

/// Returns minimum of two floats, but not NaN
fn min2(a: f64, b: f64) -> f64 {
if a < b || b.is_nan() {
a
} else {
if a > b {
b
} else {
a
}
}

Expand Down

0 comments on commit 400d2f9

Please sign in to comment.