Added Hardened Clay and Stained Clay

This commit is contained in:
Shoghi Cervantes
2014-06-16 16:02:01 +02:00
parent 28926832df
commit 778ec96d72
7 changed files with 133 additions and 6 deletions

View File

@ -62,6 +62,7 @@ class Sapling extends Flowable{
public function onActivate(Item $item, Player $player = null){
if($item->getID() === Item::DYE and $item->getDamage() === 0x0F){ //Bonemeal
//TODO: change log type
Tree::growTree($this->getLevel(), $this->x, $this->y, $this->z, new Random(mt_rand()), $this->meta & 0x07);
if(($player->gamemode & 0x01) === 0){
$item->count--;