Stairs: Use one recipe matching inventory appearence
authorparamat <paramat@users.noreply.github.com>
Sat, 3 Jun 2017 21:41:39 +0000 (22:41 +0100)
committersfan5 <sfan5@live.de>
Sun, 19 Nov 2017 21:52:00 +0000 (22:52 +0100)
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.

mods/stairs/init.lua

index 90172ef041b654309a1f4e0dfc50608b9a9442b5..ab80fbbe0e11f6c7d87b81670239e69d69842312 100644 (file)
@@ -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 = {