From 2d887390057a1e8b28cbbe222086e2d8e5ef0b88 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 12 Feb 2014 13:28:18 +0100 Subject: [PATCH] normalize --- src/world/generator/NormalGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/generator/NormalGenerator.php b/src/world/generator/NormalGenerator.php index 3e37a38e3..8c08d4c49 100644 --- a/src/world/generator/NormalGenerator.php +++ b/src/world/generator/NormalGenerator.php @@ -83,7 +83,7 @@ class NormalGenerator implements LevelGenerator{ $endY = $startY + 16; for($z = 0; $z < 16; ++$z){ for($x = 0; $x < 16; ++$x){ - $height = (int) ($this->worldHeight + $this->noise->noise3D($x + ($chunkX << 4), 0, $z + ($chunkZ << 4), 4, 0.5, 24)); + $height = (int) ($this->worldHeight + $this->noise->noise3D($x + ($chunkX << 4), 0, $z + ($chunkZ << 4), 4, 0.5, 24, true)); for($y = $startY; $y < $endY; ++$y){ $diff = $height - $y; if($y <= 4 and ($y === 0 or $this->random->nextFloat() < 0.75)){