Merge remote-tracking branch 'origin/stable'

This commit is contained in:
Dylan K. Taylor 2021-04-15 14:04:27 +01:00
commit dc5b1efa66
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -95,12 +95,9 @@ class Normal extends Generator{
return BiomeIds::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 BiomeIds::MOUNTAINS;
}elseif($rainfall < 0.70){
}elseif($temperature < 0.40){
return BiomeIds::SMALL_MOUNTAINS;
}else{
return BiomeIds::RIVER;