diff --git a/src/API/TimeAPI.php b/src/API/TimeAPI.php index 21f748b5..3f319f25 100644 --- a/src/API/TimeAPI.php +++ b/src/API/TimeAPI.php @@ -100,7 +100,6 @@ class TimeAPI{ $level = $this->server->api->level->getDefault(); } $level->setTime($level->getTime() + (int) $time); - return $this->server->time; } public function getDate($time = false){ diff --git a/src/world/Level.php b/src/world/Level.php index d12ad919..deaafb33 100644 --- a/src/world/Level.php +++ b/src/world/Level.php @@ -416,6 +416,7 @@ class Level{ public function setTime($time){ $this->startTime = $this->time = (int) $time; $this->startCheck = microtime(true); + $this->checkTime(); } public function getSeed(){