From f39d454f93290d8d908dc6dfe52e2e26e3f8c1bd Mon Sep 17 00:00:00 2001 From: Acrimon Date: Fri, 6 Sep 2019 11:05:05 +0000 Subject: [PATCH] Update fast_noise.rs --- world/src/util/fast_noise.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/world/src/util/fast_noise.rs b/world/src/util/fast_noise.rs index ab5012fb29..a40f02134a 100644 --- a/world/src/util/fast_noise.rs +++ b/world/src/util/fast_noise.rs @@ -14,7 +14,7 @@ impl FastNoise { } fn noise_at(&self, pos: Vec3) -> f32 { - (self.noise.get(pos) % 4096) as f32 / 4096.0 + (self.noise.get(pos) & 4095) as f32 * 0.000244140625 } }