1
0

Auto clean bad world linkages

This commit is contained in:
LogicParrot
2016-04-18 22:29:39 +03:00
parent e0e3f396f2
commit 9b60ee6e43
3 changed files with 16 additions and 17 deletions

View File

@@ -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)