mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Fixed #288 [gh#288]
This commit is contained in:
parent
a153f2ebdc
commit
7ade4762b9
3 changed files with 9 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ class TrapdoorBlock extends TransparentBlock{
|
|||
$this->isActivable = true;
|
||||
}
|
||||
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
||||
if($target->isTransparent === false and $face !== 0 and $face !== 1){
|
||||
if(($target->isTransparent === false or $target->getID() === SLAB) and $face !== 0 and $face !== 1){
|
||||
$faces = array(
|
||||
2 => 0,
|
||||
3 => 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue