From e7c1fd1ef722334f8503f02bdbf0a2c69466fb4e Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Wed, 5 Apr 2023 00:33:21 +0200 Subject: [PATCH] Fixing Something? --- schemsearch-lib/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemsearch-lib/src/lib.rs b/schemsearch-lib/src/lib.rs index c140532..98a512e 100644 --- a/schemsearch-lib/src/lib.rs +++ b/schemsearch-lib/src/lib.rs @@ -61,7 +61,7 @@ pub fn search( let air_id = if search_behavior.ignore_air || search_behavior.air_as_any { pattern_schem.palette.get("minecraft:air").unwrap_or(&-1) } else { &-1}; - let pattern_blocks = (pattern_schem.width * pattern_schem.height * pattern_schem.length) as f32; + let pattern_blocks = pattern_data.len() as f32; let pattern_width = pattern_schem.width as usize; let pattern_height = pattern_schem.height as usize;