Fixing join message, updating IDs

This commit is contained in:
ArkQuark 2023-02-20 21:53:13 +03:00
parent 44e0109580
commit 5b7641af3d
5 changed files with 31 additions and 7 deletions

View file

@ -1470,6 +1470,7 @@ class Player{
$this->server->api->player->spawnToAllPlayers($this);
$this->server->api->entity->spawnAll($this);
$this->server->api->entity->spawnToAll($this->entity);
$this->server->api->chat->broadcast($this->username." joined the game.");
$this->server->schedule(5, [$this->entity, "update"], [], true);
$this->server->schedule(2, [$this->entity, "updateMovement"], [], true);
@ -1481,7 +1482,7 @@ class Player{
$this->sendInventory();
$this->sendSettings();
$this->server->schedule(50, [$this, "orderChunks"], []);
//$this->server->schedule(50, [$this, "orderChunks"], []);
$this->blocked = false;
$this->server->handle("player.spawn", $this);