Fix some crash

This commit is contained in:
Jean-Patrick Guerrero 2019-02-21 01:44:09 +01:00
parent 058cd05ed7
commit 5e4a362a15

@ -259,7 +259,7 @@ local function get_filtered_items(player)
local usages = usages_cache[item] local usages = usages_cache[item]
if recipes and #apply_recipe_filters(recipes, player) > 0 or if recipes and #apply_recipe_filters(recipes, player) > 0 or
(usages and item_in_inv(item, data.inv_items) and (usages and (progressive_mode and item_in_inv(item, data.inv_items)) and
#apply_recipe_filters(usages_cache[item], player) > 0) then #apply_recipe_filters(usages_cache[item], player) > 0) then
c = c + 1 c = c + 1
items[c] = item items[c] = item