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

@ -30,7 +30,7 @@ class GenericBlock extends Block{
public function __construct($id, $meta = 0, $name = "Unknown"){
parent::__construct($id, $meta, $name);
}
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){
$level->setBlock($block, $this->id, $this->getMetadata());
return true;