fix crash if no recipe given

This commit is contained in:
Alexander Weber 2019-07-01 09:05:40 +02:00
parent e119121aa0
commit e30a65c0af

View File

@ -39,6 +39,9 @@ local function revealed_show_recipe(recipe, playername)
end
craftguide.set_recipe_filter('reveal', function(recipes, player)
if not recipes then
return
end
local filtered = {}
for i = 1, #recipes do
local recipe = recipes[i]