public function canCalcTurn() { if (!parent::canCalc()) { return false; } if ($this->getLevel()->getServer()->getTick() != $this->getLastUpdateTime()) { return true; } return $this->canScheduleUpdate() ? Level::BLOCK_UPDATE_SCHEDULED : false; }
public function canCalc() { if (!parent::canCalc()) { return false; } if ($this->getLevel()->getServer()->getTick() != $this->lastUpdateTime) { return true; } return false; }