forked from minetest-mods/moreblocks
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:
@ -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
|
||||
|
Reference in New Issue
Block a user