mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-12-14 02:30:17 +01:00
Minor style
This commit is contained in:
parent
f83bc9cccf
commit
d93f5b0cf2
10
init.lua
10
init.lua
@ -1506,15 +1506,15 @@ core.register_craft = function(def)
|
|||||||
end
|
end
|
||||||
|
|
||||||
for i = 1, #output do
|
for i = 1, #output do
|
||||||
local name = output[i]
|
local item = output[i]
|
||||||
rcp_num[name] = (rcp_num[name] or 0) + 1
|
rcp_num[item] = (rcp_num[item] or 0) + 1
|
||||||
|
|
||||||
if def.replacements then
|
if def.replacements then
|
||||||
if def.type == "fuel" then
|
if def.type == "fuel" then
|
||||||
replacements.fuel[name] = def.replacements
|
replacements.fuel[item] = def.replacements
|
||||||
else
|
else
|
||||||
replacements[name] = replacements[name] or {}
|
replacements[item] = replacements[item] or {}
|
||||||
replacements[name][rcp_num[name]] = def.replacements
|
replacements[item][rcp_num[item]] = def.replacements
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user