Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Stairs: Use one recipe matching inventory appearence
No longer have 2 recipes for stairs, choose the one that matches the appearence
in inventory (stair rising toward the right).
Helps to reduce recipe count now that an increasing number of stairs are
being registered.
  • Loading branch information
paramat committed Jun 14, 2017
1 parent b91e047 commit 175a9f8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions mods/stairs/init.lua
Expand Up @@ -89,16 +89,7 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
end

if recipeitem then
minetest.register_craft({
output = 'stairs:stair_' .. subname .. ' 8',
recipe = {
{recipeitem, "", ""},
{recipeitem, recipeitem, ""},
{recipeitem, recipeitem, recipeitem},
},
})

-- Flipped recipe for the silly minecrafters
-- Recipe matches appearence in inventory
minetest.register_craft({
output = 'stairs:stair_' .. subname .. ' 8',
recipe = {
Expand Down

0 comments on commit 175a9f8

Please sign in to comment.