Add CPU matching option and improve default behavior handling

This commit is contained in:
2025-04-09 18:30:51 +02:00
parent 1d3d5b3e6e
commit 35726def3e
6 changed files with 32 additions and 33 deletions

View File

@@ -9,6 +9,22 @@ pub struct SearchBehavior {
pub ignore_entities: bool,
pub threshold: f32,
pub invalid_nbt: bool,
pub use_cpu: bool,
}
impl Default for SearchBehavior {
fn default() -> Self {
SearchBehavior {
ignore_block_data: false,
ignore_block_entities: false,
ignore_air: false,
air_as_any: false,
ignore_entities: false,
threshold: 0.9,
invalid_nbt: false,
use_cpu: false,
}
}
}
#[derive(Debug, Clone, Copy, Default, Deserialize, Serialize)]