Added trees to teh SuperflatGenerator

This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-18 11:02:00 +02:00
parent 3c4d4f5cff
commit e81d68c8d0
8 changed files with 46 additions and 30 deletions

View file

@ -54,7 +54,7 @@ class SaplingBlock extends TransparentBlock{
public function onActivate(Item $item, Player $player){
if($item->getID() === DYE and $item->getMetadata() === 0x0F){ //Bonemeal
TreeObject::growTree($this->level, $this);
TreeObject::growTree($this->level, $this, $this->meta);
return true;
}
return false;