Fix nil crash in progressive mode

This commit is contained in:
JP Guerrero 2016-12-13 22:00:03 +01:00
parent 757e537ea4
commit 7e1b2b8260

@ -263,6 +263,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
elseif data.pagenum == 0 then elseif data.pagenum == 0 then
data.pagenum = data.pagemax data.pagenum = data.pagemax
end end
if progressive_mode then data.item = nil end
craftguide:get_formspec(player_name) craftguide:get_formspec(player_name)
else for item in pairs(fields) do else for item in pairs(fields) do
if not item:find(":") then return end if not item:find(":") then return end