Stairs: Use one recipe matching inventory appearence
authorparamat <paramat@users.noreply.github.com>
Sat, 3 Jun 2017 21:41:39 +0000 (22:41 +0100)
committerparamat <mat.gregory@virginmedia.com>
Wed, 14 Jun 2017 19:26:17 +0000 (20:26 +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 7c6d382398601b9e548aed8cb46e0e1217405de8..8ec5aa7a190b29ac9c7991a4d06d7244c059218c 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 = {