From 32e0085c1e014a8a324f7930608eb29a86acb729 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Wed, 17 Apr 2013 17:10:05 +0200 Subject: [PATCH] Allow placing torches on top of side blocks --- src/material/block/attachable/Torch.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/material/block/attachable/Torch.php b/src/material/block/attachable/Torch.php index 1870ec6e..5e94ff09 100644 --- a/src/material/block/attachable/Torch.php +++ b/src/material/block/attachable/Torch.php @@ -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;