From d3ad413876374a11356fbdb49221dea117e2a14c Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Mon, 15 Aug 2022 01:00:34 +0200 Subject: [PATCH] Minor cleaning --- src/common.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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