public function onBreak(Item $item)
{
if (($this->getDamage() & 0x8) === 0x8) {
$down = $this->getSide(Vector3::SIDE_DOWN);
if ($down->getId() === $this->getId()) {
$this->getLevel()->setBlock($down, new Air(), true);
}
} else {
$up = $this->getSide(Vector3::SIDE_UP);
if ($up->getId() === $this->getId()) {
$this->getLevel()->setBlock($up, new Air(), true);
}
}
$this->getLevel()->setBlock($this, new Air(), true);
return true;
}