Fix mod never starting

The "/profiler" command is initialized lazily, i.e. after that mod.
Don't check for it.
This commit is contained in:
Dorian Wouters 2016-08-26 16:14:24 +02:00
parent fa7aa3d6c5
commit 986c41f188
No known key found for this signature in database
GPG Key ID: 6E9DA8063322434B

View File

@ -1,4 +1,4 @@
if minetest.chatcommands['profiler'] then if minetest.setting_getbool('profiler.load') then
local function get_interval() local function get_interval()
return minetest.setting_get('profilerdumper.interval') or 10*60 return minetest.setting_get('profilerdumper.interval') or 10*60
end end