summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-04-19 13:20:02 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-04-19 13:20:02 +0200
commit4348b2f5a4a3d91aac8808842716fc8527d254e2 (patch)
tree92e20fb6b24e2f0d7b8af190b49cfb71838f1f90 /src/ClientHandle.cpp
parentProper fix for #3136 (#3143) (diff)
parentAuto clean bad world linkages (diff)
downloadcuberite-4348b2f5a4a3d91aac8808842716fc8527d254e2.tar
cuberite-4348b2f5a4a3d91aac8808842716fc8527d254e2.tar.gz
cuberite-4348b2f5a4a3d91aac8808842716fc8527d254e2.tar.bz2
cuberite-4348b2f5a4a3d91aac8808842716fc8527d254e2.tar.lz
cuberite-4348b2f5a4a3d91aac8808842716fc8527d254e2.tar.xz
cuberite-4348b2f5a4a3d91aac8808842716fc8527d254e2.tar.zst
cuberite-4348b2f5a4a3d91aac8808842716fc8527d254e2.zip
Diffstat (limited to '')
-rw-r--r--src/ClientHandle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index cd261b338..6dc35fe61 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -345,6 +345,7 @@ void cClientHandle::Authenticate(const AString & a_Name, const AString & a_UUID,
if (World == nullptr)
{
World = cRoot::Get()->GetDefaultWorld();
+ m_Player->SetPosition(World->GetSpawnX(), World->GetSpawnY(), World->GetSpawnZ());
}
if (m_Player->GetGameMode() == eGameMode_NotSet)