Update search field when clicking on group item
This commit is contained in:
parent
7224299e7c
commit
40f8b4d9cf
@ -120,6 +120,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
if string.sub(clicked_item, 1, 6) == "group:" then
|
if string.sub(clicked_item, 1, 6) == "group:" then
|
||||||
minetest.sound_play("click", {to_player=player_name, gain = 0.1})
|
minetest.sound_play("click", {to_player=player_name, gain = 0.1})
|
||||||
unified_inventory.apply_filter(player, clicked_item, new_dir)
|
unified_inventory.apply_filter(player, clicked_item, new_dir)
|
||||||
|
unified_inventory.current_searchbox[player_name] = clicked_item
|
||||||
|
unified_inventory.set_inventory_formspec(player,
|
||||||
|
unified_inventory.current_page[player_name])
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if new_dir == "recipe"
|
if new_dir == "recipe"
|
||||||
|
Loading…
Reference in New Issue
Block a user