mirror of
https://github.com/minetest-mods/i3.git
synced 2024-11-14 14:50:22 +01:00
Attempt to Quick Crafting replacements (again)
This commit is contained in:
parent
d55994c535
commit
3b1d569118
|
@ -178,13 +178,9 @@ local function cache_recipes(item)
|
|||
_recipes[#recipes + 1 - k] = v
|
||||
end
|
||||
|
||||
local shift = 1
|
||||
local size_rpl = maxn(replacements[item])
|
||||
local size_rcp = #_recipes
|
||||
|
||||
if size_rpl > size_rcp then
|
||||
shift = size_rcp - size_rpl
|
||||
end
|
||||
local shift = size_rcp - size_rpl
|
||||
|
||||
for k, v in pairs(replacements[item]) do
|
||||
k += shift
|
||||
|
|
Loading…
Reference in New Issue
Block a user