New direct block method, better block placement sending

This commit is contained in:
Shoghi Cervantes 2013-06-01 00:32:23 +02:00
parent 722eb6d1f9
commit 24ba7cbbd1
7 changed files with 72 additions and 46 deletions

View file

@ -31,7 +31,7 @@ class GenericBlock extends Block{
parent::__construct($id, $meta, $name);
}
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
return $this->level->setBlock($block, $this);
return $this->level->setBlock($this, $this, true, false, true);
}
public function isBreakable(Item $item, Player $player){