summaryrefslogtreecommitdiff
path: root/settings.lua
diff options
context:
space:
mode:
authorAntumDeluge <antumdeluge@gmail.com>2017-05-13 01:59:30 -0700
committerShadowNinja <shadowninja@minetest.net>2017-06-09 13:00:12 -0400
commit289d0e623c1d383f26cbc57c94ce9a8a184bf525 (patch)
tree6a5b9b0055daa55339de2d4317e8be201d8640d4 /settings.lua
parentd3d43d951154fb2b9e30186f7a1e52bd05ae6d80 (diff)
Update usage of settings APIorigin/masterorigin/HEAD
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 140a655..ffb5355 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