From 957467e1148011a28ea894c94a0ae5bcae2bd6ad Mon Sep 17 00:00:00 2001 From: Joshua Yanovski Date: Fri, 1 Jul 2022 23:57:09 -0700 Subject: [PATCH] Fix chunk noise. --- server/src/cmd.rs | 6 +++--- world/src/column/mod.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/cmd.rs b/server/src/cmd.rs index ff55c9916d..099a896849 100644 --- a/server/src/cmd.rs +++ b/server/src/cmd.rs @@ -2870,11 +2870,11 @@ spawn_rate {:?} "#, col.alt, water_alt, col.water_level, - basement, + /*basement*/col.basement, river, - gradient, + /*gradient*/col.gradient, downhill, - chaos, + /*chaos*/col.chaos, flux, temp, humidity, diff --git a/world/src/column/mod.rs b/world/src/column/mod.rs index 12c5a8c129..228c651a0a 100644 --- a/world/src/column/mod.rs +++ b/world/src/column/mod.rs @@ -670,7 +670,7 @@ impl<'a, 'b> Sampler<'a, 'b> for ColumnGen1D<'a, 'b> { const SAMP_RES: i32 = 8; const SAMP_RES_X: f32 = SAMP_RES as f32 / TerrainChunkSize::RECT_SIZE.x as f32; const SAMP_RES_Y: f32 = SAMP_RES as f32 / TerrainChunkSize::RECT_SIZE.y as f32; - let cubic_delta = |x, delta: f32| cubic(x + SAMP_RES_X); + let cubic_delta = |x, delta: f32| cubic(x + delta); let alt_y = &self.alt_spline/*.eval_at_row(cubic_y)*/; let altx0 = alt_y.eval_at(cubic_delta(wposx, -SAMP_RES_X)); let altx1 = alt_y.eval_at(cubic_delta(wposx, SAMP_RES_X));