1
0
Fork 0

Suggestions

This commit is contained in:
Tiger Wang 2014-06-04 21:51:19 +01:00
parent ea49abd113
commit 873043c8e4
2 changed files with 5 additions and 2 deletions

View File

@ -1063,7 +1063,8 @@ void cEntity::DetectPortal()
{
case dimNether:
{
cIniFile OwnIni; OwnIni.ReadFile(GetWorld()->GetIniFileName());
cIniFile OwnIni;
OwnIni.ReadFile(GetWorld()->GetIniFileName());
AString OverworldName = OwnIni.GetValue("General", "OverworldName", cRoot::Get()->GetDefaultWorld()->GetName());
cFile::CreateFolder(FILE_IO_PREFIX + OverworldName);
@ -1102,7 +1103,8 @@ void cEntity::DetectPortal()
{
case dimEnd:
{
cIniFile OwnIni; OwnIni.ReadFile(GetWorld()->GetIniFileName());
cIniFile OwnIni;
OwnIni.ReadFile(GetWorld()->GetIniFileName());
AString OverworldName = OwnIni.GetValue("General", "OverworldName", cRoot::Get()->GetDefaultWorld()->GetName());
cFile::CreateFolder(FILE_IO_PREFIX + OverworldName);

View File

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