From: paramat Date: Sat, 3 Jun 2017 21:41:39 +0000 (+0100) Subject: Stairs: Use one recipe matching inventory appearence X-Git-Tag: 5.0.0~231 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=175a9f8ff5d5d93299a7aa39daff297e5444c9b5;p=oweals%2Fminetest_game.git 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. --- diff --git a/mods/stairs/init.lua b/mods/stairs/init.lua index 7c6d3823..8ec5aa7a 100644 --- a/mods/stairs/init.lua +++ b/mods/stairs/init.lua @@ -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 = {