Suggestions
This commit is contained in:
parent
ea49abd113
commit
873043c8e4
@ -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);
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user