mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
Time is sent on change
This commit is contained in:
parent
16a8566fca
commit
bfa65e1e7d
2 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,6 @@ class TimeAPI{
|
||||||
$level = $this->server->api->level->getDefault();
|
$level = $this->server->api->level->getDefault();
|
||||||
}
|
}
|
||||||
$level->setTime($level->getTime() + (int) $time);
|
$level->setTime($level->getTime() + (int) $time);
|
||||||
return $this->server->time;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDate($time = false){
|
public function getDate($time = false){
|
||||||
|
|
|
||||||
|
|
@ -416,6 +416,7 @@ class Level{
|
||||||
public function setTime($time){
|
public function setTime($time){
|
||||||
$this->startTime = $this->time = (int) $time;
|
$this->startTime = $this->time = (int) $time;
|
||||||
$this->startCheck = microtime(true);
|
$this->startCheck = microtime(true);
|
||||||
|
$this->checkTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSeed(){
|
public function getSeed(){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue