mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-16 23:10:18 +01:00
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.
This commit is contained in:
parent
b91e047868
commit
175a9f8ff5
|
@ -89,16 +89,7 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
|
||||||
end
|
end
|
||||||
|
|
||||||
if recipeitem then
|
if recipeitem then
|
||||||
minetest.register_craft({
|
-- Recipe matches appearence in inventory
|
||||||
output = 'stairs:stair_' .. subname .. ' 8',
|
|
||||||
recipe = {
|
|
||||||
{recipeitem, "", ""},
|
|
||||||
{recipeitem, recipeitem, ""},
|
|
||||||
{recipeitem, recipeitem, recipeitem},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Flipped recipe for the silly minecrafters
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'stairs:stair_' .. subname .. ' 8',
|
output = 'stairs:stair_' .. subname .. ' 8',
|
||||||
recipe = {
|
recipe = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user