Suggestions
This commit is contained in:
parent
ea49abd113
commit
873043c8e4
|
@ -1063,7 +1063,8 @@ void cEntity::DetectPortal()
|
||||||
{
|
{
|
||||||
case dimNether:
|
case dimNether:
|
||||||
{
|
{
|
||||||
cIniFile OwnIni; OwnIni.ReadFile(GetWorld()->GetIniFileName());
|
cIniFile OwnIni;
|
||||||
|
OwnIni.ReadFile(GetWorld()->GetIniFileName());
|
||||||
AString OverworldName = OwnIni.GetValue("General", "OverworldName", cRoot::Get()->GetDefaultWorld()->GetName());
|
AString OverworldName = OwnIni.GetValue("General", "OverworldName", cRoot::Get()->GetDefaultWorld()->GetName());
|
||||||
|
|
||||||
cFile::CreateFolder(FILE_IO_PREFIX + OverworldName);
|
cFile::CreateFolder(FILE_IO_PREFIX + OverworldName);
|
||||||
|
@ -1102,7 +1103,8 @@ void cEntity::DetectPortal()
|
||||||
{
|
{
|
||||||
case dimEnd:
|
case dimEnd:
|
||||||
{
|
{
|
||||||
cIniFile OwnIni; OwnIni.ReadFile(GetWorld()->GetIniFileName());
|
cIniFile OwnIni;
|
||||||
|
OwnIni.ReadFile(GetWorld()->GetIniFileName());
|
||||||
AString OverworldName = OwnIni.GetValue("General", "OverworldName", cRoot::Get()->GetDefaultWorld()->GetName());
|
AString OverworldName = OwnIni.GetValue("General", "OverworldName", cRoot::Get()->GetDefaultWorld()->GetName());
|
||||||
|
|
||||||
cFile::CreateFolder(FILE_IO_PREFIX + OverworldName);
|
cFile::CreateFolder(FILE_IO_PREFIX + OverworldName);
|
||||||
|
|
|
@ -89,6 +89,7 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName)
|
||||||
SetPosX(World->GetSpawnX());
|
SetPosX(World->GetSpawnX());
|
||||||
SetPosY(World->GetSpawnY());
|
SetPosY(World->GetSpawnY());
|
||||||
SetPosZ(World->GetSpawnZ());
|
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}",
|
LOGD("Player \"%s\" is connecting for the first time, spawning at default world spawn {%.2f, %.2f, %.2f}",
|
||||||
a_PlayerName.c_str(), GetPosX(), GetPosY(), GetPosZ()
|
a_PlayerName.c_str(), GetPosX(), GetPosY(), GetPosZ()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user