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