mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Fixed #283 server crash when placing brown mushrooms [gh#283]
This commit is contained in:
@@ -34,7 +34,7 @@ class BrownMushroomBlock extends FlowableBlock{
|
|||||||
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
||||||
$down = $this->getSide(0);
|
$down = $this->getSide(0);
|
||||||
if($down->isTransparent === false){
|
if($down->isTransparent === false){
|
||||||
$level->setBlock($block, $this->id, $this->getMetadata());
|
$this->level->setBlock($block, $this->id, $this->getMetadata());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user