Allow placing Snow Layers on top of solid transparent blocks

This commit is contained in:
Shoghi Cervantes 2015-01-12 02:18:02 +01:00
parent bd7fa71d7f
commit 8eec5e6b5e
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89

View File

@ -48,7 +48,7 @@ class SnowLayer extends Flowable{
public function place(Item $item, Block $block, Block $target, $face, $fx, $fy, $fz, Player $player = null){
$down = $this->getSide(0);
if($down instanceof Solid){
if($down->isSolid()){
$this->getLevel()->setBlock($block, $this, true);
return true;