mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Merge branch 'master' into mcpe-1.0
This commit is contained in:
commit
8f797442b3
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user