time flow is better

This commit is contained in:
GameHerobrine 2023-07-02 07:23:18 +03:00
parent d2f1574e56
commit 0aa9843458
4 changed files with 11 additions and 8 deletions

View file

@ -1463,12 +1463,12 @@ class Player{
$this->evid[] = $this->server->event("tile.update", [$this, "eventHandler"]);
$this->lastMeasure = microtime(true);
$this->server->schedule(50, [$this, "measureLag"], [], true);
/*
$pk = new SetTimePacket;
$pk->time = (int) $this->level->getTime();
$pk->started = !$this->level->isTimeStopped();
$this->dataPacket($pk);
*/
console("[INFO] " . FORMAT_AQUA . $this->username . FORMAT_RESET . "[/" . $this->ip . ":" . $this->port . "] logged in with entity id " . $this->eid . " at (" . $this->entity->level->getName() . ", " . round($this->entity->x, 2) . ", " . round($this->entity->y, 2) . ", " . round($this->entity->z, 2) . ")");
//spawn!