diff options
Diffstat (limited to 'stairsplus/slabs.lua')
-rw-r--r-- | stairsplus/slabs.lua | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/stairsplus/slabs.lua b/stairsplus/slabs.lua index 1e9b097..ae15c40 100644 --- a/stairsplus/slabs.lua +++ b/stairsplus/slabs.lua @@ -74,11 +74,11 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields) end def.description = desc if fields.drop then - def.drop = modname..":slab_"..fields.drop..alternate + def.drop = modname.. ":slab_" ..fields.drop..alternate end - minetest.register_node(":"..modname..":slab_"..subname..alternate, def) + minetest.register_node(":" ..modname.. ":slab_" ..subname..alternate, def) end - minetest.register_alias("stairs:slab_"..subname, modname..":slab_"..subname) + minetest.register_alias("stairs:slab_" ..subname, modname.. ":slab_" ..subname) -- Some saw-less recipes: @@ -94,9 +94,16 @@ function stairsplus:register_slab(modname, subname, recipeitem, fields) }) minetest.register_craft({ - type = "shapeless", output = "moreblocks:slab_" .. subname, - recipe = {"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname}, + recipe = {{"moreblocks:panel_" .. subname, "moreblocks:panel_" .. subname}}, + }) + + minetest.register_craft({ + output = "moreblocks:slab_" .. subname, + recipe = { + {"moreblocks:panel_" .. subname}, + {"moreblocks:panel_" .. subname}, + }, }) minetest.register_craft({ |