From bfa65e1e7dc5a8bb0173e602eb9beaad7aeae548 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 8 Jun 2013 14:19:10 +0200 Subject: [PATCH] Time is sent on change --- src/API/TimeAPI.php | 1 - src/world/Level.php | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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(){