mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Allow placing torches on top of side blocks
This commit is contained in:
parent
b34e55eec5
commit
32e0085c1e
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue