lastCorrct will be set after StartGamePacket

This commit is contained in:
GameHerobrine 2023-08-16 21:33:53 +03:00
parent 1b8c16b318
commit 369693ef03

View file

@ -1442,7 +1442,7 @@ class Player{
$pk->gamemode = $this->gamemode & 0x01;
$pk->eid = 0;
$this->dataPacket($pk);
$this->lastCorrect = new Vector3($this->entity->x, $this->entity->y, $this->entity->z);
if(($level = $this->server->api->level->get($this->data->get("spawn")["level"])) !== false){
$this->spawnPosition = new Position($this->data->get("spawn")["x"], $this->data->get("spawn")["y"], $this->data->get("spawn")["z"], $level);