summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-07 00:14:02 +0200
committerWuzzy <almikes@aol.com>2016-08-14 23:35:12 +0200
commit40f8b4d9cf5273ee2830a91fa87418a795163692 (patch)
treec6ad04557d39ca1612f1f0be136f474b0a8f46a3
parent7224299e7c265a7bdeecb01a1df4464c82691685 (diff)
Update search field when clicking on group item
-rw-r--r--callbacks.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/callbacks.lua b/callbacks.lua
index be5c055..ad6de0a 100644
--- a/callbacks.lua
+++ b/callbacks.lua
@@ -120,6 +120,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if string.sub(clicked_item, 1, 6) == "group:" then
minetest.sound_play("click", {to_player=player_name, gain = 0.1})
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
end
if new_dir == "recipe"