Some cleanup

This commit is contained in:
Jean-Patrick Guerrero
2021-12-07 01:27:43 +01:00
parent cffdf77e6a
commit 2fcd559261
3 changed files with 22 additions and 10 deletions

View File

@ -352,7 +352,6 @@ local function get_recipes(player, item)
local no_recipes = not recipes or #recipes == 0
if no_recipes and not usages then return end
usages = apply_recipe_filters(usages, player)
local no_usages = not usages or #usages == 0
return not no_recipes and recipes or nil,