mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-12-14 02:30:17 +01:00
Paranoid check
This commit is contained in:
parent
d93f5b0cf2
commit
50d19faa48
6
init.lua
6
init.lua
@ -718,7 +718,11 @@ local function cache_recipes(item)
|
|||||||
end
|
end
|
||||||
|
|
||||||
for k, v in pairs(replacements[item]) do
|
for k, v in pairs(replacements[item]) do
|
||||||
_recipes[k + shift].replacements = v
|
k = k + shift
|
||||||
|
|
||||||
|
if _recipes[k] then
|
||||||
|
_recipes[k].replacements = v
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
recipes = _recipes
|
recipes = _recipes
|
||||||
|
Loading…
Reference in New Issue
Block a user