mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Player: spawn at safe-spawn on level not found, instead of real spawn
This commit is contained in:
parent
c18ba38b74
commit
8cf0fc63d8
@ -1994,7 +1994,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
if(($level = $this->server->getLevelByName($this->namedtag->getString("Level", "", true))) === null){
|
||||
$this->setLevel($this->server->getDefaultLevel());
|
||||
$this->namedtag->setString("Level", $this->level->getFolderName());
|
||||
$spawnLocation = $this->level->getSpawnLocation();
|
||||
$spawnLocation = $this->level->getSafeSpawn();
|
||||
$this->namedtag->setTag(new ListTag("Pos", [
|
||||
new DoubleTag("", $spawnLocation->x),
|
||||
new DoubleTag("", $spawnLocation->y),
|
||||
|
Loading…
x
Reference in New Issue
Block a user