Fixed #283 server crash when placing brown mushrooms [gh#283]

This commit is contained in:
Shoghi Cervantes 2013-05-24 23:56:35 +02:00
parent b8834890b6
commit e34b407538

View File

@ -34,7 +34,7 @@ class BrownMushroomBlock extends FlowableBlock{
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
$down = $this->getSide(0);
if($down->isTransparent === false){
$level->setBlock($block, $this->id, $this->getMetadata());
$this->level->setBlock($block, $this->id, $this->getMetadata());
return true;
}
return false;