From 5e4a362a15279129595aa8fad8746f4483a517a3 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Thu, 21 Feb 2019 01:44:09 +0100 Subject: [PATCH] Fix some crash --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 32932e6..2d97acd 100644 --- a/init.lua +++ b/init.lua @@ -259,7 +259,7 @@ local function get_filtered_items(player) local usages = usages_cache[item] 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 c = c + 1 items[c] = item