mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Improved biome generation, get grass color from gradient interpolation, improved performance of generation, try to recreate grass colors from imported chunks, closes #2845, closes #1792
This commit is contained in:
@ -62,7 +62,7 @@ class TallGrass extends Populator{
|
||||
private function getHighestWorkableBlock($x, $z){
|
||||
for($y = 127; $y >= 0; --$y){
|
||||
$b = $this->level->getBlockIdAt($x, $y, $z);
|
||||
if($b !== Block::AIR and $b !== Block::LEAVES and $b !== Block::SNOW_LAYER){
|
||||
if($b !== Block::AIR and $b !== Block::LEAVES and $b !== Block::LEAVES2 and $b !== Block::SNOW_LAYER){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user