File tree 1 file changed +7
-5
lines changed
technic/machines/register
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,10 @@ function technic.register_recipe_type(typename, origdata)
32
32
end
33
33
34
34
local function get_recipe_index (items )
35
- if not items or type (items ) ~= " table" then return false end
35
+ if type (items ) ~= " table" then
36
+ return false
37
+ end
38
+
36
39
local l = {}
37
40
for i , stack in ipairs (items ) do
38
41
l [i ] = ItemStack (stack ):get_name ()
@@ -75,22 +78,21 @@ local function register_recipe(typename, data)
75
78
end
76
79
if (have_cg or have_i3 ) and technic .recipes [typename ].output_size == 1 then
77
80
local result = data .output
78
- if ( type (result )== " table" ) then
81
+ if type (result ) == " table" then
79
82
result = result [1 ]
80
83
end
81
- local items = table.concat (data .input , " , " )
82
84
if have_cg and craftguide .register_craft then
83
85
craftguide .register_craft ({
84
86
type = typename ,
85
87
result = result ,
86
- items = { items } ,
88
+ items = data . input ,
87
89
})
88
90
end
89
91
if have_i3 then
90
92
i3 .register_craft ({
91
93
type = typename ,
92
94
result = result ,
93
- items = { items } ,
95
+ items = data . input ,
94
96
})
95
97
end
96
98
end
You can’t perform that action at this time.
0 commit comments