Skip to content

Commit

Permalink
Remove extra empty strings in craft recipes (#2281)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-ouellette authored and SmallJoker committed Jan 2, 2019
1 parent 6688ddf commit ccf03ea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
6 changes: 3 additions & 3 deletions mods/farming/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ farming.register_hoe = function(name, def)
minetest.register_craft({
output = name:sub(2),
recipe = {
{def.material, def.material, ""},
{"", "group:stick", ""},
{"", "group:stick", ""}
{def.material, def.material},
{"", "group:stick"},
{"", "group:stick"}
}
})
end
Expand Down
11 changes: 5 additions & 6 deletions mods/fireflies/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ minetest.register_tool("fireflies:bug_net", {
minetest.register_craft( {
output = "fireflies:bug_net",
recipe = {
{"farming:string", "farming:string", ""},
{"farming:string", "farming:string", ""},
{"default:stick", "", ""}
{"farming:string", "farming:string"},
{"farming:string", "farming:string"},
{"default:stick", ""}
}
})

Expand Down Expand Up @@ -171,9 +171,8 @@ minetest.register_node("fireflies:firefly_bottle", {
minetest.register_craft( {
output = "fireflies:firefly_bottle",
recipe = {
{"", "", ""},
{"", "fireflies:firefly", ""},
{"", "vessels:glass_bottle", ""}
{"fireflies:firefly"},
{"vessels:glass_bottle"}
}
})

Expand Down
7 changes: 3 additions & 4 deletions mods/stairs/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@ function stairs.register_stair_inner(subname, recipeitem, groups, images,
minetest.register_craft({
output = 'stairs:stair_inner_' .. subname .. ' 7',
recipe = {
{ "", recipeitem, ""},
{ recipeitem, "", recipeitem},
{"", recipeitem, ""},
{recipeitem, "", recipeitem},
{recipeitem, recipeitem, recipeitem},
},
})
Expand Down Expand Up @@ -417,8 +417,7 @@ function stairs.register_stair_outer(subname, recipeitem, groups, images,
minetest.register_craft({
output = 'stairs:stair_outer_' .. subname .. ' 6',
recipe = {
{ "", "", ""},
{ "", recipeitem, ""},
{"", recipeitem, ""},
{recipeitem, recipeitem, recipeitem},
},
})
Expand Down

0 comments on commit ccf03ea

Please sign in to comment.