summaryrefslogtreecommitdiff
path: root/settings.lua
diff options
context:
space:
mode:
authorroot <root@linux-forks.de>2018-07-18 19:09:28 +0200
committerroot <root@linux-forks.de>2018-07-18 19:09:28 +0200
commit630b9f9bf4c15036b8eb1b408ca1a50930404bd7 (patch)
tree34331f54e2cb6f9d397bfb87e50c59596759bb13 /settings.lua
parent31be6711333e5006816caaa1b6df968d834449d2 (diff)
parent289d0e623c1d383f26cbc57c94ce9a8a184bf525 (diff)
Merge branch 'master' of https://github.com/ShadowNinja/areasHEADmaster
Diffstat (limited to 'settings.lua')
-rw-r--r--settings.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/settings.lua b/settings.lua
index 477dae4..5719643 100644
--- a/settings.lua
+++ b/settings.lua
@@ -6,13 +6,13 @@ local function setting(tp, name, default)
local full_name = "areas."..name
local value
if tp == "boolean" then
- value = minetest.setting_getbool(full_name)
+ value = minetest.settings:get_bool(full_name)
elseif tp == "string" then
- value = minetest.setting_get(full_name)
+ value = minetest.settings:get(full_name)
elseif tp == "position" then
value = minetest.setting_get_pos(full_name)
elseif tp == "number" then
- value = tonumber(minetest.setting_get(full_name))
+ value = tonumber(minetest.settings:get(full_name))
else
error("Invalid setting type!")
end