Fix nil crash in progressive mode (again)

This commit is contained in:
JP Guerrero 2016-12-13 23:24:18 +01:00
parent 5113dc407a
commit 0be1076edc

@ -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