From 307622b4d7d890f1cc3e4f2a2d2e3327ad333e4b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 15 Aug 2017 02:27:08 +0200 Subject: [PATCH] Fix crash when click on invalid item in craftguide --- mods/HELP/mcl_craftguide/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/HELP/mcl_craftguide/init.lua b/mods/HELP/mcl_craftguide/init.lua index 4b60d69d5..fecd7f657 100644 --- a/mods/HELP/mcl_craftguide/init.lua +++ b/mods/HELP/mcl_craftguide/init.lua @@ -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 = {}