changes from PR feedback

This commit is contained in:
Alexander Weber 2019-01-12 09:50:18 +01:00
parent f6b7f8054f
commit 2360a53a7e
1 changed files with 6 additions and 2 deletions

View File

@ -504,7 +504,9 @@ local function get_filter_items(data, player)
local item = items_list[i]
local item_desc = reg_items[item].description:lower()
if (filter == "" or item:find(filter, 1, true) or item_desc:find(filter, 1, true)) then
if filter == "" or
item:find(filter, 1, true)
or item_desc:find(filter, 1, true) then
local _recipes, has_item
if progressive_mode then
_recipes, has_item = recipe_in_inv(inv, item)
@ -720,7 +722,9 @@ if sfinv_only then
on_enter = function(self, player, context)
local player_name = player:get_player_name()
if not player_data[player_name] then
local data = player_data[player_name]
if not data then
init_data(player, player_name)
end
end,