Fix filter reset for empty search boxes

This commit is contained in:
SmallJoker 2022-01-24 15:20:57 +01:00
parent 23a45b8131
commit 25c40fea6c

@ -204,7 +204,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
{to_player=player_name, gain = 1.0})
end
elseif fields.searchresetbutton then
if ui.current_searchbox[player_name] ~= "" then
if ui.activefilter[player_name] ~= "" then
apply_new_filter(player, "", "nochange")
end
end