solve new player login crash issue (#4285)
currently if new player login, server will crash during send player ability to client. this pull request solve this issue.
This commit is contained in:
parent
e7b552603f
commit
89017dfbbc
@ -149,7 +149,6 @@ cPlayer::cPlayer(cClientHandlePtr a_Client, const AString & a_PlayerName) :
|
||||
SetBedPos(Vector3i(static_cast<int>(World->GetSpawnX()), static_cast<int>(World->GetSpawnY()), static_cast<int>(World->GetSpawnZ())), World);
|
||||
|
||||
SetWorld(World); // Use default world
|
||||
SetCapabilities();
|
||||
|
||||
LOGD("Player \"%s\" is connecting for the first time, spawning at default world spawn {%.2f, %.2f, %.2f}",
|
||||
a_PlayerName.c_str(), GetPosX(), GetPosY(), GetPosZ()
|
||||
|
Loading…
Reference in New Issue
Block a user