Skip to content
Permalink
Browse files

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

  • Loading branch information
SmallJoker committed Aug 23, 2020
1 parent 5d0e4ae commit 1da168b3c34f207e808f76dca95fe4b3d8b29985
Showing with 4 additions and 2 deletions.
  1. +1 −1 mods/default/functions.lua
  2. +3 −1 mods/mtg_craftguide/init.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, ''},
}
})

@@ -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)

0 comments on commit 1da168b

Please sign in to comment.
You can’t perform that action at this time.