From 4560457504a377fc84f5435a38fcc99eb87e4372 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Mon, 11 Feb 2019 23:52:31 +0100 Subject: [PATCH] Mitigate the performance regression since fc2d2e5 --- README.md | 2 +- init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7dbbec5..203f717 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ Returns a map of recipe filters, indexed by name. #### `craftguide.show(player_name, item, show_usages)` -Opens the craft guide with the current filter applied. +Opens the Crafting Guide with the current filter applied. * `player_name`: string param. * `item`: optional, string param. If set, this item is pre-selected. If the item does not exist or has no recipe, use the player's previous selection. By default, player's previous selection is used diff --git a/init.lua b/init.lua index 26c0c5e..b3b2b8d 100644 --- a/init.lua +++ b/init.lua @@ -181,7 +181,7 @@ local function get_filtered_items(player) local item = init_items[i] local recipes = recipes_cache[item] - if fuel_cache[item] then + if not recipes and fuel_cache[item] then recipes = table_merge(get_item_usages(item), recipes) end