Merge branch 'next-major' into modern-world-support

This commit is contained in:
Dylan K. Taylor
2022-05-20 11:21:35 +01:00
173 changed files with 911 additions and 1294 deletions

View File

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