Another fix

This commit is contained in:
Shoghi Cervantes 2013-06-07 19:18:35 +02:00
parent 3023df2033
commit 8e127e60a0
4 changed files with 11 additions and 7 deletions

View file

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