mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix examples
This commit is contained in:
parent
d53b344c23
commit
71039b56e6
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user