From 1da168b3c34f207e808f76dca95fe4b3d8b29985 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sun, 23 Aug 2020 14:35:12 +0200 Subject: [PATCH] Craftguide: Fix error caused by removing invalid recipes (#2732) --- mods/default/functions.lua | 2 +- mods/mtg_craftguide/init.lua | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mods/default/functions.lua b/mods/default/functions.lua index 3a4f8fc9..b92acb5d 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -431,7 +431,7 @@ function default.register_mesepost(name, def) recipe = { {'', 'default:glass', ''}, {'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'}, - {' ', def.material, ''}, + {'', def.material, ''}, } }) diff --git a/mods/mtg_craftguide/init.lua b/mods/mtg_craftguide/init.lua index c9a56d59..e20b168e 100644 --- a/mods/mtg_craftguide/init.lua +++ b/mods/mtg_craftguide/init.lua @@ -111,7 +111,9 @@ local function get_craftable_recipes(output) end end - return recipes + if #recipes > 0 then + return recipes + end end local function show_item(def)