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

@ -112,9 +112,7 @@ class Cactus extends Transparent{
$block2 = $this->getSide(Facing::WEST);
$block3 = $this->getSide(Facing::EAST);
if(!$block0->isSolid() and !$block1->isSolid() and !$block2->isSolid() and !$block3->isSolid()){
$this->getLevel()->setBlock($this, $this, true);
return true;
return parent::place($item, $blockReplace, $blockClicked, $face, $clickVector, $player);
}
}