From a076e10d16e52084b2d8b87656dbc75e028e0c6d Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Thu, 21 Feb 2019 17:28:41 +0100 Subject: [PATCH] Fix get_filtered_items again --- init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index d921808..69991ea 100644 --- a/init.lua +++ b/init.lua @@ -259,8 +259,9 @@ local function get_filtered_items(player) local usages = usages_cache[item] if recipes and #apply_recipe_filters(recipes, player) > 0 or - (usages and (progressive_mode and item_in_inv(item, data.inv_items)) and - #apply_recipe_filters(usages_cache[item], player) > 0) then + (usages and (not progressive_mode and true or + item_in_inv(item, data.inv_items)) and + #apply_recipe_filters(usages_cache[item], player) > 0) then c = c + 1 items[c] = item end