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:
parent
fa7aa3d6c5
commit
986c41f188
2
init.lua
2
init.lua
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user