mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2024-12-29 20:20:23 +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})
|
{to_player=player_name, gain = 1.0})
|
||||||
end
|
end
|
||||||
elseif fields.searchresetbutton then
|
elseif fields.searchresetbutton then
|
||||||
if ui.current_searchbox[player_name] ~= "" then
|
if ui.activefilter[player_name] ~= "" then
|
||||||
apply_new_filter(player, "", "nochange")
|
apply_new_filter(player, "", "nochange")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user