mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Players now respawn on the server's spawn point
This commit is contained in:
parent
47af98a875
commit
a5e52e7b9a
1 changed files with 1 additions and 1 deletions
|
|
@ -782,7 +782,7 @@ class Player{
|
|||
}
|
||||
$this->entity->fire = 0;
|
||||
$this->entity->air = 300;
|
||||
$this->teleport(new Vector3($this->data["spawn"]["x"], $this->data["spawn"]["y"], $this->data["spawn"]["z"]));
|
||||
$this->teleport(new Vector3($this->server->spawn["x"], $this->server->spawn["y"], $this->server->spawn["z"]));
|
||||
$this->entity->setHealth(20, "respawn");
|
||||
$this->entity->updateMetadata();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue