1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 15:00:18 +01:00

Craftguide: Fix error caused by removing invalid recipes (#2732)

This commit is contained in:
SmallJoker 2020-08-23 14:35:12 +02:00 committed by GitHub
parent 5d0e4aef45
commit 1da168b3c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -111,8 +111,10 @@ local function get_craftable_recipes(output)
end
end
if #recipes > 0 then
return recipes
end
end
local function show_item(def)
return def.groups.not_in_craft_guide ~= 1 and def.description ~= ""