mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Fixed #283 server crash when placing brown mushrooms [gh#283]
This commit is contained in:
parent
b8834890b6
commit
e34b407538
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue