diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index 2c0e512bd..4834377cd 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -755,17 +755,6 @@ class Level implements ChunkManager, Metadatable{ } } - /** - * @internal - */ - public function checkTime(){ - if($this->stopTime){ - return; - }else{ - ++$this->time; - } - } - /** * @internal * @@ -800,7 +789,9 @@ class Level implements ChunkManager, Metadatable{ } protected function actuallyDoTick(int $currentTick) : void{ - $this->checkTime(); + if(!$this->stopTime){ + $this->time++; + } $this->sunAnglePercentage = $this->computeSunAnglePercentage(); //Sun angle depends on the current time $this->skyLightReduction = $this->computeSkyLightReduction(); //Sky light reduction depends on the sun angle