summaryrefslogtreecommitdiff
path: root/register.lua
diff options
context:
space:
mode:
authorkaeza <kaeza@users.sf.net>2014-01-19 14:34:44 -0200
committerkaeza <kaeza@users.sf.net>2014-01-19 14:35:44 -0200
commitd560bcd6f0ba8b885127c5d5d2315fb72c2d1f47 (patch)
tree0a2d4fb60babf49d3a7c665c63ab87667a11e0a3 /register.lua
parentb69fc35c888c569bf7e87e24466740ca5f749918 (diff)
Allow searching for groups.
Also make "group buttons" apply the filter to that group.
Diffstat (limited to 'register.lua')
-rw-r--r--register.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/register.lua b/register.lua
index f901774..66384bf 100644
--- a/register.lua
+++ b/register.lua
@@ -213,7 +213,8 @@ unified_inventory.register_page("craftguide", {
local group = string.sub(item, 7)
formspec = formspec.."image_button["
..(1.0 + x)..","..(0.0 + y)..";1.1,1.1;"
- .."ui_group.png;;"
+ .."ui_group.png;"
+ .."item_group_"..minetest.formspec_escape(group)..";"
..minetest.formspec_escape(group).."]"
else
formspec = formspec.."item_image_button["