Merge branch 'master' into mcpe-1.0

This commit is contained in:
Dylan K. Taylor 2017-01-10 10:55:05 +00:00
commit 8f797442b3
2 changed files with 4 additions and 6 deletions

View File

@ -560,7 +560,7 @@ class Item implements ItemIds, \JsonSerializable{
$this->clearCustomName();
}
if(!($hadCompoundTag = $this->hasCompoundTag())){
if(!$this->hasCompoundTag()){
$tag = new CompoundTag("", []);
}else{
$tag = $this->getNamedTag();
@ -574,9 +574,7 @@ class Item implements ItemIds, \JsonSerializable{
]);
}
if(!$hadCompoundTag){
$this->setCompoundTag($tag);
}
$this->setCompoundTag($tag);
return $this;
}

View File

@ -119,9 +119,9 @@ class Normal extends Generator{
$this->random->setSeed($this->level->getSeed());
$this->selector = new BiomeSelector($this->random, function($temperature, $rainfall){
if($rainfall < 0.25){
if($rainfall < 0.7){
if($temperature < 0.7){
return Biome::OCEAN;
}elseif($rainfall < 0.85){
}elseif($temperature < 0.85){
return Biome::RIVER;
}else{
return Biome::SWAMP;