Tree growing!

This commit is contained in:
Shoghi Cervantes Pueyo 2012-12-27 01:08:26 +01:00
parent 8f6ed22158
commit 2353457b5b
10 changed files with 163 additions and 5 deletions

View file

@ -176,6 +176,10 @@ class BlockAPI{
if(isset(Material::$activable[$target[0]])){
switch($target[0]){
case 6:
if($data["block"] === 351 and $data["meta"] === 0x0F){ //Bonemeal
Sapling::growTree($this->server->api->level, $target, $target[1] & 0x03);
$cancelPlace = true;
}
break;
case 2:
case 3: