summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2014-01-17 20:11:37 +0100
committerAlexander Harkness <bearbin@gmail.com>2014-01-17 20:11:37 +0100
commit935600bf0a8d8d97de2f9b2fb391d3b632dfd350 (patch)
tree7f1d8d463d0d70ba888c992f80681a1775a31b6b /src/World.cpp
parentAPIDump: Updated cPluginManager:GetAllPlugins(). (diff)
parentAdded user setting compression factor (diff)
downloadcuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar
cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.gz
cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.bz2
cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.lz
cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.xz
cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.tar.zst
cuberite-935600bf0a8d8d97de2f9b2fb391d3b632dfd350.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp
index edf27050d..3e7c0ef74 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -231,6 +231,7 @@ cWorld::cWorld(const AString & a_WorldName) :
m_WorldName(a_WorldName),
m_IniFileName(m_WorldName + "/world.ini"),
m_StorageSchema("Default"),
+ m_StorageCompressionFactor(6),
m_IsSpawnExplicitlySet(false),
m_WorldAgeSecs(0),
m_TimeOfDaySecs(0),
@@ -512,6 +513,7 @@ void cWorld::Start(void)
}
m_StorageSchema = IniFile.GetValueSet ("Storage", "Schema", m_StorageSchema);
+ m_StorageCompressionFactor = IniFile.GetValueSetI ("Storage", "CompressionFactor", m_StorageCompressionFactor);
m_MaxCactusHeight = IniFile.GetValueSetI("Plants", "MaxCactusHeight", 3);
m_MaxSugarcaneHeight = IniFile.GetValueSetI("Plants", "MaxSugarcaneHeight", 3);
m_IsCactusBonemealable = IniFile.GetValueSetB("Plants", "IsCactusBonemealable", false);
@@ -585,7 +587,7 @@ void cWorld::Start(void)
m_SimulatorManager->RegisterSimulator(m_RedstoneSimulator, 1);
m_Lighting.Start(this);
- m_Storage.Start(this, m_StorageSchema);
+ m_Storage.Start(this, m_StorageSchema, m_StorageCompressionFactor );
m_Generator.Start(m_GeneratorCallbacks, m_GeneratorCallbacks, IniFile);
m_ChunkSender.Start(this);
m_TickThread.Start();