summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorJP Guerrero <jeanpatrick.guerrero@gmail.com>2016-12-13 22:00:03 +0100
committerJP Guerrero <jeanpatrick.guerrero@gmail.com>2016-12-13 22:00:03 +0100
commit7e1b2b82603c23e2a2952f65541bc0acd141979f (patch)
tree156caa3fe402ac9bb9d81825537438f1fff8bfcf /init.lua
parent757e537ea427c14c37709f98d80cf8e163d7c2f2 (diff)
Fix nil crash in progressive mode
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 5933a88..2c8cf6c 100644
--- a/init.lua
+++ b/init.lua
@@ -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