Reset to 'all' category when searching a group

This commit is contained in:
Oversword 2021-03-29 03:21:45 +01:00
parent 5576071193
commit f287b668b7
1 changed files with 1 additions and 0 deletions

View File

@ -161,6 +161,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
clicked_item = unified_inventory.demangle_for_formspec(mangled_item)
if string.sub(clicked_item, 1, 6) == "group:" then
-- Change search filter to this group
unified_inventory.current_category[player_name] = "all"
apply_new_filter(player, clicked_item, new_dir)
return
end