Fixed tool metadata [partial]

This commit is contained in:
Shoghi Cervantes 2013-06-07 19:14:09 +02:00
parent e9683ff5d2
commit 3463db04a6
4 changed files with 50 additions and 3 deletions

View file

@ -33,6 +33,7 @@ class DirtBlock extends SolidBlock{
public function onActivate(Item $item, Player $player){
if($item->isHoe()){
$item->meta++;
$this->level->setBlock($this, BlockAPI::get(FARMLAND, 0));
return true;
}