mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-05 09:40:22 +01:00
Fix nil crash in progressive mode
This commit is contained in:
parent
757e537ea4
commit
7e1b2b8260
1
init.lua
1
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user