fix examples

This commit is contained in:
Isse 2023-04-01 14:26:11 +02:00 committed by Joshua Barretto
parent d53b344c23
commit 71039b56e6
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -100,7 +100,7 @@ fn generate(db_path: &str, ymin: Option<i32>, ymax: Option<i32>) -> 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