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

View File

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