summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-10 16:48:20 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-10 16:48:20 +0200
commitf90078c09ff576d3f8af1554872c53afbdcd6fe0 (patch)
treed15428791814cdda063eda5cb071eb2b39de07d0 /src/World.cpp
parentRenamed functions. (diff)
downloadcuberite-f90078c09ff576d3f8af1554872c53afbdcd6fe0.tar
cuberite-f90078c09ff576d3f8af1554872c53afbdcd6fe0.tar.gz
cuberite-f90078c09ff576d3f8af1554872c53afbdcd6fe0.tar.bz2
cuberite-f90078c09ff576d3f8af1554872c53afbdcd6fe0.tar.lz
cuberite-f90078c09ff576d3f8af1554872c53afbdcd6fe0.tar.xz
cuberite-f90078c09ff576d3f8af1554872c53afbdcd6fe0.tar.zst
cuberite-f90078c09ff576d3f8af1554872c53afbdcd6fe0.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp
index dc1d9fedf..0ae7f80a6 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -577,6 +577,7 @@ void cWorld::Start(void)
m_bEnabledPVP = IniFile.GetValueSetB("Mechanics", "PVPEnabled", true);
m_bUseChatPrefixes = IniFile.GetValueSetB("Mechanics", "UseChatPrefixes", true);
m_VillagersShouldHarvestCrops = IniFile.GetValueSetB("Monsters", "VillagersShouldHarvestCrops", true);
+ m_IsDaylightCycleEnabled = IniFile.GetValueSetB("General", "IsDaylightCycleEnabled", true);
int GameMode = IniFile.GetValueSetI("General", "Gamemode", (int)m_GameMode);
int Weather = IniFile.GetValueSetI("General", "Weather", (int)m_Weather);
@@ -798,6 +799,7 @@ void cWorld::Stop(void)
IniFile.SetValueI("Physics", "TNTShrapnelLevel", (int)m_TNTShrapnelLevel);
IniFile.SetValueB("Mechanics", "CommandBlocksEnabled", m_bCommandBlocksEnabled);
IniFile.SetValueB("Mechanics", "UseChatPrefixes", m_bUseChatPrefixes);
+ IniFile.SetValueB("General", "IsDaylightCycleEnabled", m_IsDaylightCycleEnabled);
IniFile.SetValueI("General", "Weather", (int)m_Weather);
IniFile.SetValueI("General", "TimeInTicks", m_TimeOfDay);
IniFile.WriteFile(m_IniFileName);