mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2024-11-19 22:03:43 +01:00
Fix filter reset for empty search boxes
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user