Merge branch 'stable' of github.com:pmmp/PocketMine-MP into stable

This commit is contained in:
Dylan K. Taylor
2021-04-16 00:11:01 +01:00
2 changed files with 8 additions and 11 deletions

View File

@ -144,12 +144,9 @@ class Normal extends Generator{
return Biome::BIRCH_FOREST;
}
}else{
//FIXME: This will always cause River to be used since the rainfall is always greater than 0.8 if we
//reached this branch. However I don't think that substituting temperature for rainfall is correct given
//that mountain biomes are supposed to be pretty cold.
if($rainfall < 0.25){
if($temperature < 0.20){
return Biome::MOUNTAINS;
}elseif($rainfall < 0.70){
}elseif($temperature < 0.40){
return Biome::SMALL_MOUNTAINS;
}else{
return Biome::RIVER;