Level: clean up and remove checkTime()

This commit is contained in:
Dylan K. Taylor 2018-08-06 19:00:00 +01:00
parent 22d9260a3b
commit d850a84d0d

View File

@ -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