summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkilbith <kilbith@users.noreply.github.com>2016-02-22 12:52:50 +0100
committerkilbith <kilbith@users.noreply.github.com>2016-02-22 12:52:50 +0100
commit8fd58cf38bf8a35516c238cf962ee1a8dd9f4ed0 (patch)
tree3f800fadfc02c2994e40dea87798b1f31180ea23
parent490481600042175c0480a7b822e188584c8ff9d0 (diff)
parentcb76f4cf2cf791aa82119402abf4c3adb9202d3a (diff)
Merge pull request #1 from tenplus1/patch-1
Search using enter/return key also
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 8f28baa..3b2e23e 100644
--- a/init.lua
+++ b/init.lua
@@ -121,7 +121,7 @@ minetest.register_on_player_receive_fields(function(player, listname, fields)
local recipe_num = tonumber(formspec:match("Recipe%s(%d+)")) or 1
recipe_num = recipe_num + 1
craftguide:get_formspec(stack, pagenum, item, recipe_num, filter, player_name)
- elseif fields.search then
+ elseif fields.search or fields.filter then
craftguide:get_items(fields.filter:lower(), player_name)
craftguide:get_formspec(stack, 1, nil, 1, fields.filter:lower(), player_name)
elseif fields.prev or fields.next then