diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-04 22:51:19 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-04 22:51:19 +0200 |
commit | 873043c8e46dfd1ec764fbd5b673173ffe88271f (patch) | |
tree | 02ee456be3a1deda8d9c32f0dc77629dae14ab85 /src/Entities/Player.cpp | |
parent | Time and weather is saved, part of #1058 (diff) | |
download | cuberite-873043c8e46dfd1ec764fbd5b673173ffe88271f.tar cuberite-873043c8e46dfd1ec764fbd5b673173ffe88271f.tar.gz cuberite-873043c8e46dfd1ec764fbd5b673173ffe88271f.tar.bz2 cuberite-873043c8e46dfd1ec764fbd5b673173ffe88271f.tar.lz cuberite-873043c8e46dfd1ec764fbd5b673173ffe88271f.tar.xz cuberite-873043c8e46dfd1ec764fbd5b673173ffe88271f.tar.zst cuberite-873043c8e46dfd1ec764fbd5b673173ffe88271f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index eebc9ecf9..c2f384abf 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -89,6 +89,7 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName) SetPosX(World->GetSpawnX()); SetPosY(World->GetSpawnY()); SetPosZ(World->GetSpawnZ()); + SetBedPos(Vector3i(World->GetSpawnX(), World->GetSpawnY(), World->GetSpawnZ())); LOGD("Player \"%s\" is connecting for the first time, spawning at default world spawn {%.2f, %.2f, %.2f}", a_PlayerName.c_str(), GetPosX(), GetPosY(), GetPosZ() |