diff --git a/schemsearch-lib/src/lib.rs b/schemsearch-lib/src/lib.rs index 5d14c59..763ef8a 100644 --- a/schemsearch-lib/src/lib.rs +++ b/schemsearch-lib/src/lib.rs @@ -78,7 +78,7 @@ pub fn search( } } let matching_percent = matching as f64 / pattern_blocks; - if matching_percent > search_behavior.threshold { + if matching_percent >= search_behavior.threshold { matches.push((x as u16, y as u16, z as u16, matching_percent)); } }