diff options
author | andrew <xdotftw@gmail.com> | 2014-01-22 14:49:21 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-01-22 14:49:21 +0100 |
commit | dd04f5a73ccc125be80a3ba3a3ab508ac300b99a (patch) | |
tree | db504bb2f55757a79a4173f7d2b82f9a66d08229 /src/World.cpp | |
parent | Merge branch 'master' of https://github.com/mc-server/MCServer (diff) | |
download | cuberite-dd04f5a73ccc125be80a3ba3a3ab508ac300b99a.tar cuberite-dd04f5a73ccc125be80a3ba3a3ab508ac300b99a.tar.gz cuberite-dd04f5a73ccc125be80a3ba3a3ab508ac300b99a.tar.bz2 cuberite-dd04f5a73ccc125be80a3ba3a3ab508ac300b99a.tar.lz cuberite-dd04f5a73ccc125be80a3ba3a3ab508ac300b99a.tar.xz cuberite-dd04f5a73ccc125be80a3ba3a3ab508ac300b99a.tar.zst cuberite-dd04f5a73ccc125be80a3ba3a3ab508ac300b99a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp index f83de0342..49d42f08e 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -12,6 +12,7 @@ #include "ChunkMap.h" #include "Generating/ChunkDesc.h" #include "OSSupport/Timer.h" +#include "WorldStorage/ScoreboardSerializer.h" // Entities (except mobs): #include "Entities/ExpOrb.h" @@ -248,6 +249,10 @@ cWorld::cWorld(const AString & a_WorldName) : LOGD("cWorld::cWorld(\"%s\")", a_WorldName.c_str()); cFile::CreateFolder(FILE_IO_PREFIX + m_WorldName); + + // Load the scoreboard + cScoreboardSerializer Serializer(m_WorldName, &m_Scoreboard); + Serializer.Load(); } @@ -267,6 +272,10 @@ cWorld::~cWorld() m_Storage.WaitForFinish(); + // Unload the scoreboard + cScoreboardSerializer Serializer(m_WorldName, &m_Scoreboard); + Serializer.Save(); + delete m_ChunkMap; } |