mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Fix Normal generator logic fail
This commit is contained in:
parent
41d36e4e7a
commit
b566c4e609
@ -119,9 +119,9 @@ class Normal extends Generator{
|
|||||||
$this->random->setSeed($this->level->getSeed());
|
$this->random->setSeed($this->level->getSeed());
|
||||||
$this->selector = new BiomeSelector($this->random, function($temperature, $rainfall){
|
$this->selector = new BiomeSelector($this->random, function($temperature, $rainfall){
|
||||||
if($rainfall < 0.25){
|
if($rainfall < 0.25){
|
||||||
if($rainfall < 0.7){
|
if($temperature < 0.7){
|
||||||
return Biome::OCEAN;
|
return Biome::OCEAN;
|
||||||
}elseif($rainfall < 0.85){
|
}elseif($temperature < 0.85){
|
||||||
return Biome::RIVER;
|
return Biome::RIVER;
|
||||||
}else{
|
}else{
|
||||||
return Biome::SWAMP;
|
return Biome::SWAMP;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user