diff options
author | JP Guerrero <jeanpatrick.guerrero@gmail.com> | 2016-12-13 22:00:03 +0100 |
---|---|---|
committer | JP Guerrero <jeanpatrick.guerrero@gmail.com> | 2016-12-13 22:00:03 +0100 |
commit | 7e1b2b82603c23e2a2952f65541bc0acd141979f (patch) | |
tree | 156caa3fe402ac9bb9d81825537438f1fff8bfcf | |
parent | 757e537ea427c14c37709f98d80cf8e163d7c2f2 (diff) |
Fix nil crash in progressive mode
-rw-r--r-- | init.lua | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |