]> git.lizzy.rs Git - mcl_enchanting.git/commitdiff
Run luacheck and fix warnings.
authorTim <t4im@users.noreply.github.com>
Fri, 5 Aug 2016 21:30:47 +0000 (23:30 +0200)
committerTim <t4im@users.noreply.github.com>
Fri, 5 Aug 2016 21:30:47 +0000 (23:30 +0200)
.luacheckrc [new file with mode: 0644]
init.lua

diff --git a/.luacheckrc b/.luacheckrc
new file mode 100644 (file)
index 0000000..a21bce1
--- /dev/null
@@ -0,0 +1,7 @@
+unused_args = false
+allow_defined_top = true
+
+read_globals = {
+       "minetest",
+       "default",
+}
index 3dc20e4b9c97d7ae3860ec5288ee1da32818a98e..c986421028ac3f28ce3796c96b449d4354ff9bda 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -132,7 +132,6 @@ function enchanting.destruct(pos)
 end
 
 function enchanting.timer(pos)
-       local node = minetest.get_node(pos)
        local num = #minetest.get_objects_inside_radius(pos, 0.9)
 
        if num == 0 then