mirror of
https://gitlab.com/luk3yx/minetest-flow.git
synced 2025-06-17 07:38:02 +02:00
Fix crash
This commit is contained in:
parent
918002d505
commit
6c48ccd446
5
init.lua
5
init.lua
@ -736,7 +736,12 @@ local function parse_callbacks(tree, ctx_form, auto_name_id,
|
||||
w = node.w + padding * 2, h = node.h + padding * 2,
|
||||
})
|
||||
end
|
||||
|
||||
-- The on_quit callback is undocumented and not recommended, it
|
||||
-- only gets called when the client tells the server that it's
|
||||
-- closing the form and not when another form is shown.
|
||||
if node.on_quit then
|
||||
callbacks = callbacks or {}
|
||||
if callbacks.quit then
|
||||
-- HACK
|
||||
callbacks.quit = chain_cb(callbacks.quit, node.on_quit)
|
||||
|
Loading…
Reference in New Issue
Block a user