From e34b40753848470b0e00869d76d24ca19cacdcd4 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Fri, 24 May 2013 23:56:35 +0200 Subject: [PATCH] Fixed #283 server crash when placing brown mushrooms [gh#283] --- src/material/block/plant/BrownMushroom.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/material/block/plant/BrownMushroom.php b/src/material/block/plant/BrownMushroom.php index 8340f59649..d4b6d60abc 100644 --- a/src/material/block/plant/BrownMushroom.php +++ b/src/material/block/plant/BrownMushroom.php @@ -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;