Tilling Dirt & Grass, tall gras growth

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-04 18:54:48 +01:00
parent a718294a08
commit fee04cd0d9
6 changed files with 61 additions and 10 deletions

View file

@ -32,7 +32,7 @@ class MelonStemBlock extends TransparentBlock{
public function place(BlockAPI $level, Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
if($block->inWorld === true){
$down = $level->getBlockFace($block, 0);
if($down->getID() === 60){
if($down->getID() === FARMLAND){
$level->setBlock($block, $this->id, $this->getMetadata());
return true;
}