From d93f5b0cf26318eee57f5c427cf4d2c66e67c94e Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Mon, 27 Jul 2020 03:47:33 +0200 Subject: [PATCH] Minor style --- init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 4eeb792..1df290c 100644 --- a/init.lua +++ b/init.lua @@ -1506,15 +1506,15 @@ core.register_craft = function(def) end for i = 1, #output do - local name = output[i] - rcp_num[name] = (rcp_num[name] or 0) + 1 + local item = output[i] + rcp_num[item] = (rcp_num[item] or 0) + 1 if def.replacements then if def.type == "fuel" then - replacements.fuel[name] = def.replacements + replacements.fuel[item] = def.replacements else - replacements[name] = replacements[name] or {} - replacements[name][rcp_num[name]] = def.replacements + replacements[item] = replacements[item] or {} + replacements[item][rcp_num[item]] = def.replacements end end end