Block: Use parent::place() instead of setBlock() directly

This commit is contained in:
Dylan K. Taylor
2018-09-12 20:07:39 +01:00
parent 54342ab0ce
commit c0962a47be
45 changed files with 93 additions and 134 deletions

View File

@ -47,9 +47,7 @@ class NetherWartPlant extends Flowable{
public function place(Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, Player $player = null) : bool{
$down = $this->getSide(Facing::DOWN);
if($down->getId() === Block::SOUL_SAND){
$this->getLevel()->setBlock($blockReplace, $this, false, true);
return true;
return parent::place($item, $blockReplace, $blockClicked, $face, $clickVector, $player);
}
return false;