diff --git a/init.lua b/init.lua index ba98871..cab270f 100644 --- a/init.lua +++ b/init.lua @@ -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,