mirror of
https://github.com/minetest-mods/enchanting.git
synced 2024-08-20 12:54:06 +02:00
Run luacheck and fix warnings.
This commit is contained in:
parent
971ee09e42
commit
cac16639a5
7
.luacheckrc
Normal file
7
.luacheckrc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
unused_args = false
|
||||||
|
allow_defined_top = true
|
||||||
|
|
||||||
|
read_globals = {
|
||||||
|
"minetest",
|
||||||
|
"default",
|
||||||
|
}
|
1
init.lua
1
init.lua
@ -132,7 +132,6 @@ function enchanting.destruct(pos)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function enchanting.timer(pos)
|
function enchanting.timer(pos)
|
||||||
local node = minetest.get_node(pos)
|
|
||||||
local num = #minetest.get_objects_inside_radius(pos, 0.9)
|
local num = #minetest.get_objects_inside_radius(pos, 0.9)
|
||||||
|
|
||||||
if num == 0 then
|
if num == 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user