diff --git a/src/world/World.php b/src/world/World.php index 687014c1e4..cd430bba4c 100644 --- a/src/world/World.php +++ b/src/world/World.php @@ -1273,7 +1273,7 @@ class World implements ChunkManager{ * get an angle in radians, or by 360 to get an angle in degrees. */ public function computeSunAnglePercentage() : float{ - $timeProgress = ($this->time % 24000) / 24000; + $timeProgress = ($this->time % self::TIME_FULL) / self::TIME_FULL; //0.0 needs to be high noon, not dusk $sunProgress = $timeProgress + ($timeProgress < 0.25 ? 0.75 : -0.25);