Skip to content

Commit

Permalink
Craftguide: Fix error caused by removing invalid recipes (#2732)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed Aug 23, 2020
1 parent 5d0e4ae commit 1da168b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mods/default/functions.lua
Expand Up @@ -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, ''},
}
})

Expand Down
4 changes: 3 additions & 1 deletion mods/mtg_craftguide/init.lua
Expand Up @@ -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)
Expand Down

0 comments on commit 1da168b

Please sign in to comment.