protected function turnAroundOff(array $ignore = [])
{
if (!$this->isLightedByAround()) {
$sides = [Vector3::SIDE_EAST, Vector3::SIDE_WEST, Vector3::SIDE_SOUTH, Vector3::SIDE_NORTH, Vector3::SIDE_UP, Vector3::SIDE_DOWN];
foreach ($sides as $side) {
if (!in_array($side, $ignore)) {
/** @var ActiveRedstoneLamp $block */
$block = $this->getSide($side);
if ($block->getId() == $this->id) {
if ($block->isLightedByAround()) {
if (!$block->checkPower([$this->getOppositeSide($side)])) {
$block->turnOff();
}
}
}
}
}
}
}