1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-05-28 14:00:36 +02:00

fix/shim luacheck errors

This commit is contained in:
BuckarooBanzay 2025-05-11 22:02:25 +02:00
parent e657d0476a
commit ad8984c72b
2 changed files with 3 additions and 1 deletions

@ -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",

@ -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