File tree 1 file changed +7
-4
lines changed
technic/machines/register
1 file changed +7
-4
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,22 @@ 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
84
local items = table.concat (data .input , " , " )
82
85
if have_cg and craftguide .register_craft then
83
86
craftguide .register_craft ({
84
87
type = typename ,
85
88
result = result ,
86
- items = { items } ,
89
+ items = data . input ,
87
90
})
88
91
end
89
92
if have_i3 then
90
93
i3 .register_craft ({
91
94
type = typename ,
92
95
result = result ,
93
- items = { items } ,
96
+ items = data . input ,
94
97
})
95
98
end
96
99
end
You can’t perform that action at this time.
0 commit comments