diff --git a/src/common.lua b/src/common.lua index b9465ad..a3124da 100644 --- a/src/common.lua +++ b/src/common.lua @@ -443,10 +443,8 @@ local function craft_stack(player, data, craft_rcp) end if rcp_def.replacements then - for _, v in ipairs(rcp_def.replacements) do - for _, item2 in ipairs(v) do - get_stack(player, ItemStack(item2)) - end + for _, pair in ipairs(rcp_def.replacements) do + get_stack(player, ItemStack(pair[2])) end end