diff options
Diffstat (limited to 'caverealms_lite')
-rw-r--r-- | caverealms_lite/config.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/caverealms_lite/config.lua b/caverealms_lite/config.lua index a4c9a0f..5a5f9cc 100644 --- a/caverealms_lite/config.lua +++ b/caverealms_lite/config.lua @@ -7,11 +7,11 @@ caverealms.config = {} local function setting(stype, name, default) local value if stype == "bool" then - value = minetest.setting_getbool(CONFIG_FILE_PREFIX..name) + value = minetest.settings:get_bool(CONFIG_FILE_PREFIX..name) elseif stype == "string" then - value = minetest.setting_get(CONFIG_FILE_PREFIX..name) + value = minetest.settings:get(CONFIG_FILE_PREFIX..name) elseif stype == "number" then - value = tonumber(minetest.setting_get(CONFIG_FILE_PREFIX..name)) + value = tonumber(minetest.settings:get(CONFIG_FILE_PREFIX..name)) end if value == nil then value = default |