Replace deprecated methods:

- 'setting_get' with 'settings:get'
- 'setting_getbool' with 'settings:get_bool'
- 'setting_set' with 'settings:set'
This commit is contained in:
AntumDeluge 2017-05-13 00:08:18 -07:00 committed by stujones11
parent 35db060560
commit 753be543f1
2 changed files with 6 additions and 6 deletions

@ -41,11 +41,11 @@ end
-- Load Configuration
for name, config in pairs(armor.config) do
local setting = minetest.setting_get("armor_"..name)
local setting = minetest.settings:get("armor_"..name)
if type(config) == "number" then
setting = tonumber(setting)
elseif type(config) == "boolean" then
setting = minetest.setting_getbool("armor_"..name)
setting = minetest.settings:get_bool("armor_"..name)
end
if setting ~= nil then
armor.config[name] = setting

@ -1,13 +1,13 @@
local time = 0
local update_time = tonumber(minetest.setting_get("wieldview_update_time"))
local update_time = tonumber(minetest.settings:get("wieldview_update_time"))
if not update_time then
update_time = 2
minetest.setting_set("wieldview_update_time", tostring(update_time))
minetest.settings:set("wieldview_update_time", tostring(update_time))
end
local node_tiles = minetest.setting_getbool("wieldview_node_tiles")
local node_tiles = minetest.settings:get_bool("wieldview_node_tiles")
if not node_tiles then
node_tiles = false
minetest.setting_set("wieldview_node_tiles", "false")
minetest.settings:set("wieldview_node_tiles", "false")
end
wieldview = {