Skip to content

Commit

Permalink
Format Rust code using rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 22, 2023
1 parent f615a10 commit 5868f8b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cosmos_server/src/structure/planet/biosphere/biome/desert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,17 @@ impl Biome for DesertBiome {
sx + 456.0 * rng_changer as f64,
sy + 4645.0 * rng_changer as f64,
sz + 354.0 * rng_changer as f64,
).unsigned_abs()
)
.unsigned_abs()
% CHUNK_DIMENSIONS;

let z = seed
.chaos_hash(
sx + 678.0 * rng_changer as f64,
sy + 87.0 * rng_changer as f64,
sz + 456.0 * rng_changer as f64,
).unsigned_abs()
)
.unsigned_abs()
% CHUNK_DIMENSIONS;

let coords: BlockCoordinate = match block_up {
Expand Down Expand Up @@ -138,7 +140,8 @@ impl Biome for DesertBiome {
sx + 561.0 * rng_changer as f64,
sy + 456.0 * rng_changer as f64,
sz + 786.0 * rng_changer as f64,
).unsigned_abs()
)
.unsigned_abs()
% MAX_CACTUS_HEIGHT
+ 1;

Expand Down

0 comments on commit 5868f8b

Please sign in to comment.