Make some Stairs+ functions local and add Luacheck ignores

Those functions are used in various places in the mod,
so they aren't unused.
This commit is contained in:
Hugo Locurcio
2019-03-09 01:57:50 +01:00
parent 7dd3e1f0db
commit e622c692e1
7 changed files with 14 additions and 10 deletions

View File

@ -5,11 +5,10 @@ Copyright © 2011-2019 Hugo Locurcio and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = moreblocks.S
-- Node will be called <modname>:slab_<subname>
function register_slab(modname, subname, recipeitem, groups, images, description, drop, light)
-- luacheck: no unused
local function register_slab(modname, subname, recipeitem, groups, images, description, drop, light)
stairsplus:register_slab(modname, subname, recipeitem, {
groups = groups,
tiles = images,
@ -36,7 +35,6 @@ end
function stairsplus:register_slab(modname, subname, recipeitem, fields)
local defs = table.copy(stairsplus.defs["slab"])
local desc_base = S("%s Slab"):format(fields.description)
for alternate, shape in pairs(defs) do
stairsplus.register_single("slab", alternate, shape, modname, subname, recipeitem, fields)
end