diff --git a/src/material/block/plant/RedMushroom.php b/src/material/block/plant/RedMushroom.php index dc16df6df..9f5b6dee4 100644 --- a/src/material/block/plant/RedMushroom.php +++ b/src/material/block/plant/RedMushroom.php @@ -42,11 +42,11 @@ class RedMushroomBlock 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){ - $this->level->setBlock($block, $this); - return true; - } + $down = $this->getSide(0); + if($down->isTransparent === false){ + $this->level->setBlock($block, $this); + return true; + } return false; } } \ No newline at end of file diff --git a/src/material/block/solid/SnowLayer.php b/src/material/block/solid/SnowLayer.php index 9941f023d..b71b49cf8 100644 --- a/src/material/block/solid/SnowLayer.php +++ b/src/material/block/solid/SnowLayer.php @@ -32,6 +32,16 @@ class SnowLayerBlock extends FlowableBlock{ $this->isSolid = false; } + public function onUpdate($type){ + if($type === BLOCK_UPDATE_NORMAL){ + if($this->getSide(0)->getID() === AIR){ //Replace wit common break method + $this->level->setBlock($this, new AirBlock(), false); + return BLOCK_UPDATE_NORMAL; + } + } + return false; + } + public function getDrops(Item $item, Player $player){ if($item->isShovel() !== false){ return array(