mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-25 01:35:09 +00:00
Fix craftguide not showing written book recipe
This commit is contained in:
parent
899e8f6d30
commit
64fe6f3f80
1 changed files with 2 additions and 4 deletions
|
@ -300,10 +300,8 @@ function craftguide:get_init_items()
|
||||||
local items_list, counter = {}, 0
|
local items_list, counter = {}, 0
|
||||||
for name, def in pairs(reg_items) do
|
for name, def in pairs(reg_items) do
|
||||||
local is_fuel = get_fueltime(name) > 0
|
local is_fuel = get_fueltime(name) > 0
|
||||||
if not (def.groups.not_in_creative_inventory == 1) and
|
if (get_recipe(name).items or is_fuel)
|
||||||
(get_recipe(name).items or is_fuel) and
|
and def.description and def.description ~= "" then
|
||||||
def.description and def.description ~= "" then
|
|
||||||
|
|
||||||
counter = counter + 1
|
counter = counter + 1
|
||||||
items_list[counter] = name
|
items_list[counter] = name
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue