diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-01-17 20:01:14 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-01-17 20:01:14 +0100 |
commit | a54cbba0fdf697999e8ac4aff2f5ea436c98edc3 (patch) | |
tree | 7f1d8d463d0d70ba888c992f80681a1775a31b6b /src/WorldStorage/WorldStorage.cpp | |
parent | APIDump: Updated cPluginManager:GetAllPlugins(). (diff) | |
download | cuberite-a54cbba0fdf697999e8ac4aff2f5ea436c98edc3.tar cuberite-a54cbba0fdf697999e8ac4aff2f5ea436c98edc3.tar.gz cuberite-a54cbba0fdf697999e8ac4aff2f5ea436c98edc3.tar.bz2 cuberite-a54cbba0fdf697999e8ac4aff2f5ea436c98edc3.tar.lz cuberite-a54cbba0fdf697999e8ac4aff2f5ea436c98edc3.tar.xz cuberite-a54cbba0fdf697999e8ac4aff2f5ea436c98edc3.tar.zst cuberite-a54cbba0fdf697999e8ac4aff2f5ea436c98edc3.zip |
Diffstat (limited to 'src/WorldStorage/WorldStorage.cpp')
-rw-r--r-- | src/WorldStorage/WorldStorage.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/WorldStorage/WorldStorage.cpp b/src/WorldStorage/WorldStorage.cpp index 6aec525a8..711c8612f 100644 --- a/src/WorldStorage/WorldStorage.cpp +++ b/src/WorldStorage/WorldStorage.cpp @@ -68,11 +68,11 @@ cWorldStorage::~cWorldStorage() -bool cWorldStorage::Start(cWorld * a_World, const AString & a_StorageSchemaName) +bool cWorldStorage::Start(cWorld * a_World, const AString & a_StorageSchemaName, int a_StorageCompressionFactor ) { m_World = a_World; m_StorageSchemaName = a_StorageSchemaName; - InitSchemas(); + InitSchemas(a_StorageCompressionFactor); return super::Start(); } @@ -197,11 +197,11 @@ void cWorldStorage::UnqueueSave(const cChunkCoords & a_Chunk) -void cWorldStorage::InitSchemas(void) +void cWorldStorage::InitSchemas(int a_StorageCompressionFactor) { // The first schema added is considered the default - m_Schemas.push_back(new cWSSAnvil (m_World)); - m_Schemas.push_back(new cWSSCompact (m_World)); + m_Schemas.push_back(new cWSSAnvil (m_World,a_StorageCompressionFactor)); + m_Schemas.push_back(new cWSSCompact (m_World,a_StorageCompressionFactor)); m_Schemas.push_back(new cWSSForgetful(m_World)); // Add new schemas here |