mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Allow placing torches on top of side blocks
This commit is contained in:
parent
b34e55eec5
commit
32e0085c1e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user