mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-26 04:23:44 +01:00
Fix missing recipes again
This commit is contained in:
parent
00dcea5c50
commit
bfdb67783b
14
init.lua
14
init.lua
@ -701,11 +701,7 @@ local function cache_recipes(item)
|
|||||||
item = reg_aliases[item] or item
|
item = reg_aliases[item] or item
|
||||||
local def = reg_items[item]
|
local def = reg_items[item]
|
||||||
if not def then return end
|
if not def then return end
|
||||||
local recipes = get_all_recipes(item)
|
recipes_cache[item] = get_all_recipes(item)
|
||||||
|
|
||||||
if recipes then
|
|
||||||
recipes_cache[item] = table_merge(recipes_cache[item], recipes)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function get_recipes(item, data, player)
|
local function get_recipes(item, data, player)
|
||||||
@ -1563,9 +1559,15 @@ local function get_init_items()
|
|||||||
|
|
||||||
for name, def in pairs(reg_items) do
|
for name, def in pairs(reg_items) do
|
||||||
if name ~= "" and show_item(def) then
|
if name ~= "" and show_item(def) then
|
||||||
cache_recipes(name)
|
|
||||||
cache_drops(name, def.drop)
|
cache_drops(name, def.drop)
|
||||||
|
|
||||||
|
if not fuel_cache[name] then
|
||||||
cache_fuel(name)
|
cache_fuel(name)
|
||||||
|
end
|
||||||
|
|
||||||
|
if not recipes_cache[name] then
|
||||||
|
cache_recipes(name)
|
||||||
|
end
|
||||||
|
|
||||||
_preselect[name] = true
|
_preselect[name] = true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user