diff options
author | madmaxoft <github@xoft.cz> | 2013-11-30 22:14:47 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-11-30 22:14:47 +0100 |
commit | bf30528ec4ed53d4c6aef2da0410a04124bbc492 (patch) | |
tree | d369ea10c1173cd9a77f740ee07ea869ad6c7e62 /src/Root.cpp | |
parent | Fixed compiler warnings in IsBiomeNoDownfall(). (diff) | |
download | cuberite-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.cpp | 11 |
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(); |