diff --git a/server/src/lib.rs b/server/src/lib.rs index 00c1459335..b7ca95298c 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -300,7 +300,7 @@ impl Server { let map = world.get_map_data(index.as_index_ref(), &state.thread_pool()); #[cfg(not(feature = "worldgen"))] - let (world, index) = World::generate(settings.world_seed, &state.thread_pool()); + let (world, index) = World::generate(settings.world_seed); #[cfg(not(feature = "worldgen"))] let map = WorldMapMsg { dimensions_lg: Vec2::zero(), @@ -310,6 +310,7 @@ impl Server { sea_level: 0.0, alt: Grid::new(Vec2::new(1, 1), 1), sites: Vec::new(), + pois: Vec::new(), }; #[cfg(feature = "worldgen")] diff --git a/server/src/test_world.rs b/server/src/test_world.rs index ecdcd88986..3f0da5f23a 100644 --- a/server/src/test_world.rs +++ b/server/src/test_world.rs @@ -1,5 +1,6 @@ use common::{ generation::{ChunkSupplement, EntityInfo}, + resources::TimeOfDay, terrain::{ Block, BlockKind, MapSizeLg, SpriteKind, TerrainChunk, TerrainChunkMeta, TerrainChunkSize, }, @@ -48,6 +49,7 @@ impl World { _index: IndexRef, chunk_pos: Vec2, _should_continue: impl FnMut() -> bool, + _time: Option, ) -> Result<(TerrainChunk, ChunkSupplement), ()> { let (x, y) = chunk_pos.map(|e| e.to_le_bytes()).into_tuple(); let mut rng = SmallRng::from_seed([