fix crash if no recipe given
This commit is contained in:
parent
e119121aa0
commit
e30a65c0af
3
init.lua
3
init.lua
@ -39,6 +39,9 @@ local function revealed_show_recipe(recipe, playername)
|
|||||||
end
|
end
|
||||||
|
|
||||||
craftguide.set_recipe_filter('reveal', function(recipes, player)
|
craftguide.set_recipe_filter('reveal', function(recipes, player)
|
||||||
|
if not recipes then
|
||||||
|
return
|
||||||
|
end
|
||||||
local filtered = {}
|
local filtered = {}
|
||||||
for i = 1, #recipes do
|
for i = 1, #recipes do
|
||||||
local recipe = recipes[i]
|
local recipe = recipes[i]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user