summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-17 22:47:00 +0200
committerMattes D <github@xoft.cz>2014-08-17 22:47:00 +0200
commit80559406f99bd32de066c8a80b9f920b8b57b8f1 (patch)
treefb743a3cc538806762c3f41f7e314fd0518747ae /src/Entities/Player.cpp
parentSwamplandM: Fixed sometimes having no mountains. (diff)
downloadcuberite-80559406f99bd32de066c8a80b9f920b8b57b8f1.tar
cuberite-80559406f99bd32de066c8a80b9f920b8b57b8f1.tar.gz
cuberite-80559406f99bd32de066c8a80b9f920b8b57b8f1.tar.bz2
cuberite-80559406f99bd32de066c8a80b9f920b8b57b8f1.tar.lz
cuberite-80559406f99bd32de066c8a80b9f920b8b57b8f1.tar.xz
cuberite-80559406f99bd32de066c8a80b9f920b8b57b8f1.tar.zst
cuberite-80559406f99bd32de066c8a80b9f920b8b57b8f1.zip
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index ab4ff3161..0b13e62a9 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1842,6 +1842,7 @@ bool cPlayer::LoadFromFile(const AString & a_FileName, cWorldPtr & a_World)
bool cPlayer::SaveToDisk()
{
+ cFile::CreateFolder(FILE_IO_PREFIX + AString("players/")); // Create the "players" folder, if it doesn't exist yet (#1268)
cFile::CreateFolder(FILE_IO_PREFIX + AString("players/") + m_UUID.substr(0, 2));
// create the JSON data