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:
@ -138,7 +138,7 @@ abstract class Door extends Transparent{
|
||||
}
|
||||
|
||||
$this->setDamage(Bearing::rotate($player->getDirection(), -1));
|
||||
$this->getLevel()->setBlock($blockReplace, $this, true, true); //Bottom
|
||||
parent::place($item, $blockReplace, $blockClicked, $face, $clickVector, $player);
|
||||
$this->getLevel()->setBlock($blockUp, BlockFactory::get($this->getId(), $metaUp), true); //Top
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user