[minetest-mod-torches] 01/02: Add patch to stop warnings
Julien Puydt
julien.puydt at laposte.net
Tue Oct 3 19:31:24 UTC 2017
This is an automated email from the git hooks/post-receive script.
jpuydt-guest pushed a commit to branch master
in repository minetest-mod-torches.
commit cded329c0d9fbda802d73a50eb274cb6d27010ed
Author: Julien Puydt <julien.puydt at laposte.net>
Date: Tue Oct 3 21:24:02 2017 +0200
Add patch to stop warnings
---
debian/changelog | 6 ++++++
debian/patches/series | 1 +
debian/patches/update_api.patch | 19 +++++++++++++++++++
3 files changed, 26 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index c6ab5da..f19cb72 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+minetest-mod-torches (5-2) UNRELEASED; urgency=medium
+
+ * Added patch to stop warnings. (Closes: #877484)
+
+ -- Julien Puydt <julien.puydt at laposte.net> Tue, 03 Oct 2017 21:23:20 +0200
+
minetest-mod-torches (5-1) unstable; urgency=medium
* Initial release. (Closes: #827019)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..48cdc44
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+update_api.patch
diff --git a/debian/patches/update_api.patch b/debian/patches/update_api.patch
new file mode 100644
index 0000000..ff3f9b1
--- /dev/null
+++ b/debian/patches/update_api.patch
@@ -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",
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/minetest-mod-torches.git
More information about the Pkg-games-commits
mailing list