Fix warnings issued by luacheck.

This commit is contained in:
Diego Martínez
2017-02-15 23:53:52 -03:00
parent c8fa17801b
commit 2df6dbcad9
16 changed files with 17 additions and 70 deletions

View File

@ -34,7 +34,6 @@ minetest.register_node("lavalamp:lavalamp", {
sounds = default.node_sound_glass_defaults(),
after_dig_node = unifieddyes.after_dig_node,
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
local itemname = itemstack:get_name()
node.name = "lavalamp:lavalamp_off"
minetest.swap_node(pos, node)
return itemstack
@ -102,7 +101,6 @@ minetest.register_lbm({
nodenames = lavalamp.old_static_nodes,
action = function(pos, node)
local name = node.name
local newname
local color
if string.find(name, "red") then