summaryrefslogtreecommitdiff
path: root/mesecons/settings.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons/settings.lua')
-rw-r--r--mesecons/settings.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesecons/settings.lua b/mesecons/settings.lua
index 1ebbfde..0220707 100644
--- a/mesecons/settings.lua
+++ b/mesecons/settings.lua
@@ -1,15 +1,15 @@
-- SETTINGS
function mesecon.setting(setting, default)
if type(default) == "boolean" then
- local read = minetest.setting_getbool("mesecon."..setting)
+ local read = minetest.settings:get_bool("mesecon."..setting)
if read == nil then
return default
else
return read
end
elseif type(default) == "string" then
- return minetest.setting_get("mesecon."..setting) or default
+ return minetest.settings:get("mesecon."..setting) or default
elseif type(default) == "number" then
- return tonumber(minetest.setting_get("mesecon."..setting) or default)
+ return tonumber(minetest.settings:get("mesecon."..setting) or default)
end
end