diff -Nru minetest-mod-torches-5/debian/changelog minetest-mod-torches-5/debian/changelog --- minetest-mod-torches-5/debian/changelog 2016-06-12 05:01:01.000000000 +0000 +++ minetest-mod-torches-5/debian/changelog 2017-10-03 19:24:10.000000000 +0000 @@ -1,3 +1,9 @@ +minetest-mod-torches (5-2) unstable; urgency=medium + + * Added patch to stop warnings. (Closes: #877484) + + -- Julien Puydt Tue, 03 Oct 2017 21:24:10 +0200 + minetest-mod-torches (5-1) unstable; urgency=medium * Initial release. (Closes: #827019) diff -Nru minetest-mod-torches-5/debian/patches/series minetest-mod-torches-5/debian/patches/series --- minetest-mod-torches-5/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ minetest-mod-torches-5/debian/patches/series 2017-10-03 19:24:10.000000000 +0000 @@ -0,0 +1 @@ +update_api.patch diff -Nru minetest-mod-torches-5/debian/patches/update_api.patch minetest-mod-torches-5/debian/patches/update_api.patch --- minetest-mod-torches-5/debian/patches/update_api.patch 1970-01-01 00:00:00.000000000 +0000 +++ minetest-mod-torches-5/debian/patches/update_api.patch 2017-10-03 19:24:10.000000000 +0000 @@ -0,0 +1,19 @@ +Description: update the api to read the config +Author: Julien Puydt +Forwarded: yes + +--- a/init.lua ++++ b/init.lua +@@ -89,10 +89,10 @@ + -- torch wield light + -- + +-if not minetest.is_yes(minetest.setting_get("torches_wieldlight_enable") or true) then ++if not minetest.is_yes(minetest.settings:get_bool("torches_wieldlight_enable") or true) then + return + end +-local torchlight_update_interval = minetest.setting_get("torches_wieldlight_interval") or 0.25 ++local torchlight_update_interval = minetest.settings:get("torches_wieldlight_interval") or 0.25 + + minetest.register_node("torches:torchlight", { + drawtype = "airlike",