remove more excluded files from luacheck
This commit is contained in:
parent
8f88ec9e16
commit
50e69217bd
@ -33,11 +33,6 @@ read_globals = {
|
|||||||
"monitoring", "drawers"
|
"monitoring", "drawers"
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Remove after network update
|
|
||||||
files["technic/machines/register/cables.lua"].ignore = { "name", "from_below", "p" }
|
|
||||||
files["technic/machines/switching_station.lua"].ignore = { "pos1", "tier", "poshash" }
|
|
||||||
files["technic/machines/switching_station.lua"].max_line_length = false
|
|
||||||
|
|
||||||
-- Remove after chests update
|
-- Remove after chests update
|
||||||
files["technic_chests/register.lua"].ignore = { "fs_helpers", "name", "locked_after_place" }
|
files["technic_chests/register.lua"].ignore = { "fs_helpers", "name", "locked_after_place" }
|
||||||
files["technic_chests/register.lua"].max_line_length = false
|
files["technic_chests/register.lua"].max_line_length = false
|
||||||
|
@ -282,8 +282,8 @@ function technic.register_cable(tier, size, description, prefix, override_cable,
|
|||||||
fine_pointed = vector.subtract(fine_pointed, pointed_thing.above)
|
fine_pointed = vector.subtract(fine_pointed, pointed_thing.above)
|
||||||
fine_pointed[changed] = nil
|
fine_pointed[changed] = nil
|
||||||
local ps = {}
|
local ps = {}
|
||||||
for p, _ in pairs(fine_pointed) do
|
for p2, _ in pairs(fine_pointed) do
|
||||||
ps[#ps+1] = p
|
ps[#ps+1] = p2
|
||||||
end
|
end
|
||||||
local bigger = (math.abs(fine_pointed[ps[1]]) > math.abs(fine_pointed[ps[2]]) and ps[1]) or ps[2]
|
local bigger = (math.abs(fine_pointed[ps[1]]) > math.abs(fine_pointed[ps[2]]) and ps[1]) or ps[2]
|
||||||
if math.abs(fine_pointed[bigger]) < 0.3 then
|
if math.abs(fine_pointed[bigger]) < 0.3 then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user