Added Grass Path block, fixed redstone blocks not being able to be placed

This commit is contained in:
Shoghi Cervantes
2015-04-10 19:05:10 +02:00
parent 3f60f7c0fb
commit 3224cd7dc5
4 changed files with 79 additions and 0 deletions

View File

@ -84,6 +84,11 @@ class Grass extends Solid{
$item->useOn($this);
$this->getLevel()->setBlock($this, new Farmland());
return true;
}elseif($item->isShovel() and $this->getSide(1)->getId() === Block::AIR){
$item->useOn($this);
$this->getLevel()->setBlock($this, new GrassPath());
return true;
}