mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 17:41:46 +00:00
Fixed Trees
This commit is contained in:
parent
715e51b7c5
commit
da554fbf23
@ -23,6 +23,8 @@
|
|||||||
class TreeObject{
|
class TreeObject{
|
||||||
public $overridable = array(
|
public $overridable = array(
|
||||||
0 => true,
|
0 => true,
|
||||||
|
2 => true,
|
||||||
|
3 => true,
|
||||||
6 => true,
|
6 => true,
|
||||||
17 => true,
|
17 => true,
|
||||||
18 => true,
|
18 => true,
|
||||||
|
@ -43,9 +43,9 @@ class TreePopulator extends Populator{
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if($random->nextFloat() > 0.75){
|
if($random->nextFloat() > 0.75){
|
||||||
$meta = 1;
|
$meta = SaplingBlock::BIRCH;
|
||||||
}else{
|
}else{
|
||||||
$meta = 0;
|
$meta = SaplingBlock::OAK;
|
||||||
}
|
}
|
||||||
TreeObject::growTree($this->level, new Vector3($x, $y, $z), $random, $meta);
|
TreeObject::growTree($this->level, new Vector3($x, $y, $z), $random, $meta);
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ class TreePopulator extends Populator{
|
|||||||
if($b->getID() !== DIRT and $b->getID() !== GRASS){
|
if($b->getID() !== DIRT and $b->getID() !== GRASS){
|
||||||
if(--$y <= 0){
|
if(--$y <= 0){
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user