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 = {