diff --git a/.luacheckrc b/.luacheckrc index 6655c5e..f834812 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -9,6 +9,8 @@ globals = { } read_globals = { + -- luanti (TODO: remove after lunarmodules/luacheck releases a version with proper luanti support) + "core", -- mods "default", "mesecon", "digilines", "screwdriver", "unified_inventory", diff --git a/tubes/lua.lua b/tubes/lua.lua index 58f6e4b..38fd639 100644 --- a/tubes/lua.lua +++ b/tubes/lua.lua @@ -724,7 +724,7 @@ mesecon.queue:add_function("pipeworks:lc_tube_interrupt", function (pos, luac_id end) mesecon.queue:add_function("pipeworks:lt_digiline_relay", function (pos, channel, luac_id, msg) - if not digiline then return end + if not digilines then return end -- This check is only really necessary because in case of server crash, old actions can be thrown into the future if (minetest.get_meta(pos):get_int("luac_id") ~= luac_id) then return end if (minetest.registered_nodes[minetest.get_node(pos).name].is_burnt) then return end