From 71039b56e677386062290e5e52bdbaea29c2e552 Mon Sep 17 00:00:00 2001 From: Isse Date: Sat, 1 Apr 2023 14:26:11 +0200 Subject: [PATCH] fix examples --- world/examples/chunk_compression_benchmarks.rs | 2 +- world/examples/world_block_statistics.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/world/examples/chunk_compression_benchmarks.rs b/world/examples/chunk_compression_benchmarks.rs index f4ff72c75b..8186d5bf44 100644 --- a/world/examples/chunk_compression_benchmarks.rs +++ b/world/examples/chunk_compression_benchmarks.rs @@ -755,7 +755,7 @@ fn main() { .map(|v| v + sitepos.as_()) .enumerate() { - let chunk = world.generate_chunk(index.as_index_ref(), spiralpos, || false, None); + let chunk = world.generate_chunk(index.as_index_ref(), spiralpos, None, || false, None); if let Ok((chunk, _)) = chunk { let uncompressed = bincode::serialize(&chunk).unwrap(); let n = uncompressed.len(); diff --git a/world/examples/world_block_statistics.rs b/world/examples/world_block_statistics.rs index 41e9ae4fa4..71ba59c3f8 100644 --- a/world/examples/world_block_statistics.rs +++ b/world/examples/world_block_statistics.rs @@ -100,7 +100,7 @@ fn generate(db_path: &str, ymin: Option, ymax: Option) -> Result<(), B println!("Generating chunk at ({}, {})", x, y); let start_time = SystemTime::now(); if let Ok((chunk, _supplement)) = - world.generate_chunk(index.as_index_ref(), Vec2::new(x, y), || false, None) + world.generate_chunk(index.as_index_ref(), Vec2::new(x, y), None, || false, None) { let end_time = SystemTime::now(); // TODO: can kiddo be made to work without the `Float` bound, so we can use