mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Block: Use parent::place() instead of setBlock() directly
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user