mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-07 02:21:46 +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]);
|
$level->setBlock($block, $this->id, $faces[$face]);
|
||||||
return true;
|
return true;
|
||||||
|
}elseif($level->getBlockFace($block, 0)->isTransparent === false){
|
||||||
|
$level->setBlock($block, $this->id, 5);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user