Pārlūkot izejas kodu

Remove extra empty strings in craft recipes (#2281)

Paul Ouellette 5 gadi atpakaļ
vecāks
revīzija
ccf03ea404
3 mainītis faili ar 11 papildinājumiem un 13 dzēšanām
  1. 3 3
      mods/farming/api.lua
  2. 5 6
      mods/fireflies/init.lua
  3. 3 4
      mods/stairs/init.lua

+ 3 - 3
mods/farming/api.lua

@@ -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

+ 5 - 6
mods/fireflies/init.lua

@@ -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", ""}
 	}
 })
 
@@ -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"}
 	}
 })
 

+ 3 - 4
mods/stairs/init.lua

@@ -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},
 			},
 		})
@@ -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},
 			},
 		})