diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-05-04 17:11:56 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-05-04 17:11:56 +0200 |
commit | 34bf5c0d9db195edf8b576d1273876966cf650b2 (patch) | |
tree | b9682f8226fef09d3625089ba06235f93ce5c976 /src/Entities | |
parent | Add player statistics to API (#5193) (diff) | |
download | cuberite-34bf5c0d9db195edf8b576d1273876966cf650b2.tar cuberite-34bf5c0d9db195edf8b576d1273876966cf650b2.tar.gz cuberite-34bf5c0d9db195edf8b576d1273876966cf650b2.tar.bz2 cuberite-34bf5c0d9db195edf8b576d1273876966cf650b2.tar.lz cuberite-34bf5c0d9db195edf8b576d1273876966cf650b2.tar.xz cuberite-34bf5c0d9db195edf8b576d1273876966cf650b2.tar.zst cuberite-34bf5c0d9db195edf8b576d1273876966cf650b2.zip |
Diffstat (limited to 'src/Entities')
-rw-r--r-- | src/Entities/Player.cpp | 6 | ||||
-rw-r--r-- | src/Entities/Player.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 1e7c8df98..08adb1096 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -18,7 +18,7 @@ #include "../FastRandom.h" #include "../ClientHandle.h" -#include "../WorldStorage/StatSerializer.h" +#include "../WorldStorage/StatisticsSerializer.h" #include "../CompositeChat.h" #include "../Blocks/BlockHandler.h" @@ -1925,7 +1925,7 @@ bool cPlayer::LoadFromFile(const AString & a_FileName) { // Load the player stats. // We use the default world name (like bukkit) because stats are shared between dimensions / worlds. - StatSerializer::Load(m_Stats, m_DefaultWorldPath, GetUUID().ToLongString()); + StatisticsSerializer::Load(m_Stats, m_DefaultWorldPath, GetUUID().ToLongString()); } catch (...) { @@ -2059,7 +2059,7 @@ void cPlayer::SaveToDisk() // Save the player stats. // We use the default world name (like bukkit) because stats are shared between dimensions / worlds. // TODO: save together with player.dat, not in some other place. - StatSerializer::Save(m_Stats, m_DefaultWorldPath, GetUUID().ToLongString()); + StatisticsSerializer::Save(m_Stats, m_DefaultWorldPath, GetUUID().ToLongString()); } catch (...) { diff --git a/src/Entities/Player.h b/src/Entities/Player.h index e7b18f3b6..987bccbe5 100644 --- a/src/Entities/Player.h +++ b/src/Entities/Player.h @@ -7,7 +7,7 @@ #include "../World.h" #include "../Items/ItemHandler.h" -#include "../Statistics.h" +#include "../StatisticsManager.h" #include "../UUID.h" |