Skip to content

Commit ccf03ea

Browse files
p-ouelletteSmallJoker
authored andcommittedJan 2, 2019
Remove extra empty strings in craft recipes (#2281)
1 parent 6688ddf commit ccf03ea

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed
 

Diff for: ‎mods/farming/api.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ farming.register_hoe = function(name, def)
106106
minetest.register_craft({
107107
output = name:sub(2),
108108
recipe = {
109-
{def.material, def.material, ""},
110-
{"", "group:stick", ""},
111-
{"", "group:stick", ""}
109+
{def.material, def.material},
110+
{"", "group:stick"},
111+
{"", "group:stick"}
112112
}
113113
})
114114
end

Diff for: ‎mods/fireflies/init.lua

+5-6
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ minetest.register_tool("fireflies:bug_net", {
111111
minetest.register_craft( {
112112
output = "fireflies:bug_net",
113113
recipe = {
114-
{"farming:string", "farming:string", ""},
115-
{"farming:string", "farming:string", ""},
116-
{"default:stick", "", ""}
114+
{"farming:string", "farming:string"},
115+
{"farming:string", "farming:string"},
116+
{"default:stick", ""}
117117
}
118118
})
119119

@@ -171,9 +171,8 @@ minetest.register_node("fireflies:firefly_bottle", {
171171
minetest.register_craft( {
172172
output = "fireflies:firefly_bottle",
173173
recipe = {
174-
{"", "", ""},
175-
{"", "fireflies:firefly", ""},
176-
{"", "vessels:glass_bottle", ""}
174+
{"fireflies:firefly"},
175+
{"vessels:glass_bottle"}
177176
}
178177
})
179178

Diff for: ‎mods/stairs/init.lua

+3-4
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ function stairs.register_stair_inner(subname, recipeitem, groups, images,
337337
minetest.register_craft({
338338
output = 'stairs:stair_inner_' .. subname .. ' 7',
339339
recipe = {
340-
{ "", recipeitem, ""},
341-
{ recipeitem, "", recipeitem},
340+
{"", recipeitem, ""},
341+
{recipeitem, "", recipeitem},
342342
{recipeitem, recipeitem, recipeitem},
343343
},
344344
})
@@ -417,8 +417,7 @@ function stairs.register_stair_outer(subname, recipeitem, groups, images,
417417
minetest.register_craft({
418418
output = 'stairs:stair_outer_' .. subname .. ' 6',
419419
recipe = {
420-
{ "", "", ""},
421-
{ "", recipeitem, ""},
420+
{"", recipeitem, ""},
422421
{recipeitem, recipeitem, recipeitem},
423422
},
424423
})

0 commit comments

Comments
 (0)
Please sign in to comment.