mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-26 20:43:42 +01:00
Small correction
This commit is contained in:
parent
f88e0412fc
commit
f83bc9cccf
6
init.lua
6
init.lua
@ -710,9 +710,11 @@ local function cache_recipes(item)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local shift = 0
|
local shift = 0
|
||||||
|
local size_rpl = maxn(replacements[item])
|
||||||
|
local size_rcp = #_recipes
|
||||||
|
|
||||||
if maxn(replacements[item]) > #_recipes then
|
if size_rpl > size_rcp then
|
||||||
shift = -1
|
shift = size_rcp - size_rpl
|
||||||
end
|
end
|
||||||
|
|
||||||
for k, v in pairs(replacements[item]) do
|
for k, v in pairs(replacements[item]) do
|
||||||
|
Loading…
Reference in New Issue
Block a user