From 057f0cf03f52108bbd3dc1cb3037ff979615eeb6 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 3 Jul 2022 05:00:13 +0200 Subject: [PATCH] Fix again --- init.lua | 2 +- src/fields.lua | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index b3cb59b..d31a80f 100644 --- a/init.lua +++ b/init.lua @@ -20,7 +20,7 @@ local function lf(path) end i3 = { - version = 173, + version = 174, data = core.deserialize(storage:get_string"data") or {}, settings = { diff --git a/src/fields.lua b/src/fields.lua index ef8bdf2..75fa735 100644 --- a/src/fields.lua +++ b/src/fields.lua @@ -95,6 +95,10 @@ local function inv_fields(player, data, fields) data.waypoint_see = nil data.bag_rename = nil + if data.filter == "" then + data.enable_search = nil + end + elseif fields.trash then data.show_settings = nil data.confirm_trash = true @@ -309,7 +313,7 @@ end local function rcp_fields(player, data, fields) local sb_rcp, sb_usg = fields.scrbar_rcp, fields.scrbar_usg - if data.filter == "" then + if fields.filter and fields.filter == "" then data.enable_search = nil end