summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorLane Kolbly <lane@rscheme.org>2017-09-07 11:57:12 +0200
committerMattes D <github@xoft.cz>2017-09-07 11:57:12 +0200
commitdc294cdc51135f38bc4417834e473c8fc4d92b1a (patch)
treea66378a8ced95ca25bc86e3854eca09910193375 /src/Entities
parentFire effect now shown for creative and spectator mode players (#3998) (diff)
downloadcuberite-dc294cdc51135f38bc4417834e473c8fc4d92b1a.tar
cuberite-dc294cdc51135f38bc4417834e473c8fc4d92b1a.tar.gz
cuberite-dc294cdc51135f38bc4417834e473c8fc4d92b1a.tar.bz2
cuberite-dc294cdc51135f38bc4417834e473c8fc4d92b1a.tar.lz
cuberite-dc294cdc51135f38bc4417834e473c8fc4d92b1a.tar.xz
cuberite-dc294cdc51135f38bc4417834e473c8fc4d92b1a.tar.zst
cuberite-dc294cdc51135f38bc4417834e473c8fc4d92b1a.zip
Diffstat (limited to 'src/Entities')
-rw-r--r--src/Entities/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index f9804569f..614edef75 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -2203,7 +2203,7 @@ bool cPlayer::LoadFromFile(const AString & a_FileName, cWorldPtr & a_World)
// Load the player stats.
// We use the default world name (like bukkit) because stats are shared between dimensions / worlds.
- cStatSerializer StatSerializer(cRoot::Get()->GetDefaultWorld()->GetName(), GetName(), &m_Stats);
+ cStatSerializer StatSerializer(cRoot::Get()->GetDefaultWorld()->GetName(), GetName(), GetUUID().ToLongString(), &m_Stats);
StatSerializer.Load();
LOGD("Player %s was read from file \"%s\", spawning at {%.2f, %.2f, %.2f} in world \"%s\"",
@@ -2301,7 +2301,7 @@ bool cPlayer::SaveToDisk()
// Save the player stats.
// We use the default world name (like bukkit) because stats are shared between dimensions / worlds.
- cStatSerializer StatSerializer(cRoot::Get()->GetDefaultWorld()->GetName(), GetName(), &m_Stats);
+ cStatSerializer StatSerializer(cRoot::Get()->GetDefaultWorld()->GetName(), GetName(), GetUUID().ToLongString(), &m_Stats);
if (!StatSerializer.Save())
{
LOGWARNING("Could not save stats for player %s", GetName().c_str());