Allow placing torches on top of side blocks

This commit is contained in:
Shoghi Cervantes Pueyo 2013-04-17 17:10:05 +02:00
parent b34e55eec5
commit 32e0085c1e

View File

@ -63,6 +63,9 @@ class TorchBlock extends FlowableBlock{
);
$level->setBlock($block, $this->id, $faces[$face]);
return true;
}elseif($level->getBlockFace($block, 0)->isTransparent === false){
$level->setBlock($block, $this->id, 5);
return true;
}
}
return false;