mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Slab placement
This commit is contained in:
parent
d9c87161ba
commit
fb9a0f2119
5 changed files with 43 additions and 5 deletions
|
|
@ -43,7 +43,7 @@ class SaplingBlock extends TransparentBlock{
|
|||
$this->name = $names[$this->meta & 0x03];
|
||||
}
|
||||
|
||||
public function place(BlockAPI $level, Item $item, Player $player, Block $block, Block $target, $face){
|
||||
public function place(BlockAPI $level, Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
||||
if($block->inWorld === true){
|
||||
$down = $level->getBlockFace($block, 0);
|
||||
if($down->getID() === 2 or $down->getID() === 3 or $down->getID() === 60){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue