Generator: Move static noise functions to Noise instance methods

This commit is contained in:
Dylan K. Taylor
2018-06-07 13:40:10 +01:00
parent b54197904d
commit 0bca3cd481
4 changed files with 153 additions and 156 deletions

View File

@ -118,7 +118,7 @@ class Nether extends Generator{
public function generateChunk(int $chunkX, int $chunkZ){
$this->random->setSeed(0xdeadbeef ^ ($chunkX << 8) ^ $chunkZ ^ $this->level->getSeed());
$noise = Generator::getFastNoise3D($this->noiseBase, 16, 128, 16, 4, 8, 4, $chunkX * 16, 0, $chunkZ * 16);
$noise = $this->noiseBase->getFastNoise3D(16, 128, 16, 4, 8, 4, $chunkX * 16, 0, $chunkZ * 16);
$chunk = $this->level->getChunk($chunkX, $chunkZ);