From 183a9ff7a12f7ce2f64176498c8fc5e20537afa3 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 | 4 ++-- locale/craftguide.fr.tr | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index d921808..09248a9 100644 --- a/init.lua +++ b/init.lua @@ -259,8 +259,8 @@ 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 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 diff --git a/locale/craftguide.fr.tr b/locale/craftguide.fr.tr index 2bdbf9d..b09a1b0 100644 --- a/locale/craftguide.fr.tr +++ b/locale/craftguide.fr.tr @@ -2,7 +2,6 @@ Craft Guide=Guide de recettes Crafting Guide=Guide de recettes -Crafting Guide Sign=Guide de recettes (panneau) Search=Rechercher Reset=Réinitialiser Previous page=Page précédente