summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-01-17 20:01:14 +0100
committerTycho <work.tycho+git@gmail.com>2014-01-17 20:01:14 +0100
commita54cbba0fdf697999e8ac4aff2f5ea436c98edc3 (patch)
tree7f1d8d463d0d70ba888c992f80681a1775a31b6b /src/World.cpp
parentAPIDump: Updated cPluginManager:GetAllPlugins(). (diff)
downloadcuberite-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 '')
-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();