Fixed Trees

This commit is contained in:
Shoghi Cervantes 2014-02-14 00:25:44 +01:00
parent 715e51b7c5
commit da554fbf23
2 changed files with 5 additions and 3 deletions

View File

@ -23,6 +23,8 @@
class TreeObject{
public $overridable = array(
0 => true,
2 => true,
3 => true,
6 => true,
17 => true,
18 => true,

View File

@ -43,9 +43,9 @@ class TreePopulator extends Populator{
continue;
}
if($random->nextFloat() > 0.75){
$meta = 1;
$meta = SaplingBlock::BIRCH;
}else{
$meta = 0;
$meta = SaplingBlock::OAK;
}
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(--$y <= 0){
return -1;
}
}
}else{
break;
}