mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-21 15:21:21 +00:00
Craftguide: Fix error caused by removing invalid recipes (#2732)
This commit is contained in:
parent
5d0e4aef45
commit
1da168b3c3
2 changed files with 4 additions and 2 deletions
|
@ -431,7 +431,7 @@ function default.register_mesepost(name, def)
|
||||||
recipe = {
|
recipe = {
|
||||||
{'', 'default:glass', ''},
|
{'', 'default:glass', ''},
|
||||||
{'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
|
{'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
|
||||||
{' ', def.material, ''},
|
{'', def.material, ''},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,9 @@ local function get_craftable_recipes(output)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if #recipes > 0 then
|
||||||
return recipes
|
return recipes
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function show_item(def)
|
local function show_item(def)
|
||||||
|
|
Loading…
Add table
Reference in a new issue