mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-03-02 11:24:38 +01:00
Fix crash when click on invalid item in craftguide
This commit is contained in:
@ -19,6 +19,9 @@ local get_recipes = function(query_item)
|
||||
-- doesn't return repairing recipes)
|
||||
if minetest.get_modpath("mcl_core") then
|
||||
local def = minetest.registered_items[query_item]
|
||||
if not def then
|
||||
return
|
||||
end
|
||||
if def.type == "tool" then
|
||||
if recipes == nil then
|
||||
recipes = {}
|
||||
|
Reference in New Issue
Block a user