summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-04-18 21:29:39 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-04-19 11:06:52 +0200
commit9b60ee6e439b55dd87179db0d24594f3c4debf6c (patch)
tree92e20fb6b24e2f0d7b8af190b49cfb71838f1f90 /src/ClientHandle.cpp
parentProper fix for #3136 (#3143) (diff)
downloadcuberite-9b60ee6e439b55dd87179db0d24594f3c4debf6c.tar
cuberite-9b60ee6e439b55dd87179db0d24594f3c4debf6c.tar.gz
cuberite-9b60ee6e439b55dd87179db0d24594f3c4debf6c.tar.bz2
cuberite-9b60ee6e439b55dd87179db0d24594f3c4debf6c.tar.lz
cuberite-9b60ee6e439b55dd87179db0d24594f3c4debf6c.tar.xz
cuberite-9b60ee6e439b55dd87179db0d24594f3c4debf6c.tar.zst
cuberite-9b60ee6e439b55dd87179db0d24594f3c4debf6c.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)