mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Improved heightmap generation
This commit is contained in:
@ -106,6 +106,7 @@ class PopulationTask extends AsyncTask{
|
||||
$generator->populateChunk($chunk->getX(), $chunk->getZ());
|
||||
|
||||
$chunk = $manager->getChunk($chunk->getX(), $chunk->getZ());
|
||||
$chunk->recalculateHeightMap();
|
||||
$chunk->setPopulated(true);
|
||||
$this->chunk = $chunk->toFastBinary();
|
||||
|
||||
|
@ -251,7 +251,7 @@ class Normal extends Generator{
|
||||
|
||||
if($noiseValue >= 0){
|
||||
$chunk->setBlockId($x, $y, $z, Block::STONE);
|
||||
}else{
|
||||
}/*else{
|
||||
if($y <= $this->waterHeight){
|
||||
$chunk->setBlockId($x, $y, $z, Block::STILL_WATER);
|
||||
$lightValue = 15 - ($this->waterHeight - $y) * 2;
|
||||
@ -261,7 +261,7 @@ class Normal extends Generator{
|
||||
}else{
|
||||
$chunk->setBlockSkyLight($x, $y, $z, 15);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user