This is an automated email from the git hooks/post-receive script. jpuydt-guest pushed a commit to branch master in repository minetest-mod-3d-armor.
commit 4fec7fa4a5c0eaa930a9128ccb6cb22d87c6eef3 Author: Julien Puydt <[email protected]> Date: Thu Oct 5 23:43:59 2017 +0200 Add patch to update the config api --- debian/changelog | 1 + debian/patches/series | 1 + debian/patches/update_config_api.patch | 35 ++++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) diff --git a/debian/changelog b/debian/changelog index 8a88469..93a9de7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ minetest-mod-3d-armor (0.4.9-2) UNRELEASED; urgency=medium * Bump std-ver to 4.1.1. * Bump d/watch to version 4. + * Add patch to update the config api. (Closes: #877491) -- Julien Puydt <[email protected]> Thu, 05 Oct 2017 23:38:04 +0200 diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..ff133cb --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +update_config_api.patch diff --git a/debian/patches/update_config_api.patch b/debian/patches/update_config_api.patch new file mode 100644 index 0000000..52c7b9b --- /dev/null +++ b/debian/patches/update_config_api.patch @@ -0,0 +1,35 @@ +Description: update config api +Author: Julien Puydt +Forwarded: https://github.com/stujones11/minetest-3d_armor/issues/122 + +--- a/3d_armor/init.lua ++++ b/3d_armor/init.lua +@@ -41,11 +41,11 @@ + -- 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 +--- a/wieldview/init.lua ++++ b/wieldview/init.lua +@@ -1,10 +1,10 @@ + 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)) + 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") -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/minetest-mod-3d-armor.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

