From 753be543f15eb69a6f50e876a147b9efab4f31de Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Sat, 13 May 2017 00:08:18 -0700 Subject: [PATCH] Replace deprecated methods: - 'setting_get' with 'settings:get' - 'setting_getbool' with 'settings:get_bool' - 'setting_set' with 'settings:set' --- 3d_armor/init.lua | 4 ++-- wieldview/init.lua | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/3d_armor/init.lua b/3d_armor/init.lua index 8c343a0..ff29389 100644 --- a/3d_armor/init.lua +++ b/3d_armor/init.lua @@ -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 diff --git a/wieldview/init.lua b/wieldview/init.lua index bce39b6..5928678 100644 --- a/wieldview/init.lua +++ b/wieldview/init.lua @@ -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 = {