mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Schedule a teleport on chunk load
This commit is contained in:
parent
1677ce4b1d
commit
4d2dc63182
1 changed files with 1 additions and 0 deletions
|
|
@ -1281,6 +1281,7 @@ class Player{
|
|||
"time" => $this->level->getTime(),
|
||||
));
|
||||
$this->teleport(new Position($this->data->get("position")["x"], $this->data->get("position")["y"], $this->data->get("position")["z"], $this->level));
|
||||
$this->server->schedule(30, array($this, "teleport"), new Position($this->data->get("position")["x"], $this->data->get("position")["y"], $this->data->get("position")["z"], $this->level));
|
||||
$this->server->handle("player.spawn", $this);
|
||||
break;
|
||||
case 2://Chunk loaded?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue