Use a settings object for the main settings
[oweals/minetest.git] / builtin / game / init.lua
index 3e192a30ab6d30b3f1f2d0236b549d02070bf160..e2635f07abef7aa3149ab0f3073d677f4ffe04c9 100644 (file)
@@ -13,7 +13,7 @@ dofile(gamepath.."constants.lua")
 assert(loadfile(gamepath.."item.lua"))(builtin_shared)
 dofile(gamepath.."register.lua")
 
-if core.setting_getbool("profiler.load") then
+if core.settings:get_bool("profiler.load") then
        profiler = dofile(scriptpath.."profiler"..DIR_DELIM.."init.lua")
 end