diff options
author | AntumDeluge <antumdeluge@gmail.com> | 2017-05-12 19:12:56 -0700 |
---|---|---|
committer | sofar <sofar+github@foo-projects.org> | 2017-08-12 14:08:24 -0700 |
commit | 7347b05e3ee576228585a9a46ad1d106784a13d4 (patch) | |
tree | 457a71c801701bb18b64a6384b5f3f3a1f50f6db /config.lua | |
parent | acd570ba0d74cf6352d9c618066054c36c3095f9 (diff) |
Replace deprecated methods:
- 'setting_get' with 'settings:get'
- 'setting_getbool' with 'settings:get_bool'
Diffstat (limited to 'config.lua')
-rw-r--r-- | config.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,7 +8,7 @@ Licensed under the zlib license. See LICENSE.md for more information. moreblocks.config = {} local function getbool_default(setting, default) - local value = minetest.setting_getbool(setting) + local value = minetest.settings:get_bool(setting) if value == nil then value = default end @@ -21,7 +21,7 @@ local function setting(settingtype, name, default) getbool_default("moreblocks." .. name, default) else moreblocks.config[name] = - minetest.setting_get("moreblocks." .. name) or default + minetest.settings:get("moreblocks." .. name) or default end end |