mirror of
https://gitlab.com/luk3yx/minetest-flow.git
synced 2025-09-16 11:46:29 +02:00
Make formspec handler return true
This commit is contained in:
parent
5e10ed5da6
commit
3cf79396e3
3
init.lua
3
init.lua
@ -832,13 +832,14 @@ local function on_fs_input(player, formname, fields)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if open_formspecs[name] ~= form_info then return end
|
if open_formspecs[name] ~= form_info then return true end
|
||||||
|
|
||||||
if fields.quit then
|
if fields.quit then
|
||||||
open_formspecs[name] = nil
|
open_formspecs[name] = nil
|
||||||
elseif redraw_fs then
|
elseif redraw_fs then
|
||||||
update_form(form_info.self, player, form_info)
|
update_form(form_info.self, player, form_info)
|
||||||
end
|
end
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
local function on_leaveplayer(player)
|
local function on_leaveplayer(player)
|
||||||
|
Loading…
Reference in New Issue
Block a user