summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorJP Guerrero <jeanpatrick.guerrero@gmail.com>2016-12-13 23:24:18 +0100
committerJP Guerrero <jeanpatrick.guerrero@gmail.com>2016-12-13 23:24:18 +0100
commit0be1076edc608bfacf2596d7e9ef541914e8a677 (patch)
tree5fe43dcbd2e5cb7f05a50351d72f8dcb0e85de06 /init.lua
parent5113dc407a99bec1caa7329979db91ac49108c04 (diff)
Fix nil crash in progressive mode (again)
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 56bae65..0868095 100644
--- a/init.lua
+++ b/init.lua
@@ -257,6 +257,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
elseif fields.search or fields.key_enter_field == "craftguide_filter" then
data.filter = fields.craftguide_filter:lower()
data.pagenum = 1
+ if progressive_mode then data.item = nil end
craftguide:get_items(player_name)
craftguide:get_formspec(player_name)
elseif fields.prev or fields.next then