Slab placement

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-03 20:15:55 +01:00
parent d9c87161ba
commit fb9a0f2119
5 changed files with 43 additions and 5 deletions

View file

@ -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){