summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-30 22:14:47 +0100
committermadmaxoft <github@xoft.cz>2013-11-30 22:14:47 +0100
commitbf30528ec4ed53d4c6aef2da0410a04124bbc492 (patch)
treed369ea10c1173cd9a77f740ee07ea869ad6c7e62 /src/Root.cpp
parentFixed compiler warnings in IsBiomeNoDownfall(). (diff)
downloadcuberite-bf30528ec4ed53d4c6aef2da0410a04124bbc492.tar
cuberite-bf30528ec4ed53d4c6aef2da0410a04124bbc492.tar.gz
cuberite-bf30528ec4ed53d4c6aef2da0410a04124bbc492.tar.bz2
cuberite-bf30528ec4ed53d4c6aef2da0410a04124bbc492.tar.lz
cuberite-bf30528ec4ed53d4c6aef2da0410a04124bbc492.tar.xz
cuberite-bf30528ec4ed53d4c6aef2da0410a04124bbc492.tar.zst
cuberite-bf30528ec4ed53d4c6aef2da0410a04124bbc492.zip
Diffstat (limited to 'src/Root.cpp')
-rw-r--r--src/Root.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index 4a6abaf37..f15bfd366 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -165,14 +165,17 @@ void cRoot::Start(void)
LOGD("Starting Authenticator...");
m_Authenticator.Start(IniFile);
- IniFile.WriteFile("settings.ini");
-
LOGD("Starting worlds...");
StartWorlds();
- LOGD("Starting deadlock detector...");
- dd.Start();
+ if (IniFile.GetValueSetB("DeadlockDetect", "Enabled", true))
+ {
+ LOGD("Starting deadlock detector...");
+ dd.Start(IniFile.GetValueSetI("DeadlockDetect", "IntervalSec", 20));
+ }
+ IniFile.WriteFile("settings.ini");
+
LOGD("Finalising startup...");
m_Server->Start();