Merge branch 'test-server_fix' into 'master'

Fix test-server

See merge request veloren/veloren!3227
This commit is contained in:
Imbris 2022-02-21 02:29:20 +00:00
commit 423ee8d14b
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@ csv-export = "run --manifest-path common/Cargo.toml --features=bin_csv --bin csv
csv-import = "run --manifest-path common/Cargo.toml --features=bin_csv --bin csv_import"
# server-cli
server = "run --bin veloren-server-cli"
test-server = "run --bin veloren-server-cli --no-default-features simd"
test-server = "run --bin veloren-server-cli --no-default-features --features simd"
tracy-server = "run --bin veloren-server-cli --no-default-features --features tracy,simd --profile no_overflow"
tracy-world-server = "run --bin veloren-server-cli --features tracy,simd --profile no_overflow"
tracy-world-server-debuginfo = "run --bin veloren-server-cli --features tracy,simd --profile no_overflow_debuginfo"

View File

@ -1,4 +1,5 @@
use common::{
calendar::Calendar,
generation::{ChunkSupplement, EntityInfo},
resources::TimeOfDay,
terrain::{
@ -46,7 +47,7 @@ impl World {
_index: IndexRef,
chunk_pos: Vec2<i32>,
_should_continue: impl FnMut() -> bool,
_time: Option<TimeOfDay>,
_time: Option<(TimeOfDay, Calendar)>,
) -> Result<(TerrainChunk, ChunkSupplement), ()> {
let (x, y) = chunk_pos.map(|e| e.to_le_bytes()).into_tuple();
let mut rng = SmallRng::from_seed([