Fixes user scripts system page

This commit is contained in:
Simone Mainardi 2021-03-22 12:49:14 +01:00
parent a562163681
commit 07210032e1

View file

@ -654,6 +654,11 @@ local function init_user_script(user_script, mod_fname, full_path, plugin, scrip
user_script.hooks[hook] = callback
end
end
if not user_script.hooks then
-- Flow user scripts no longer have hooks. They have callbacks in C++ that have replaced hooks
user_script.hooks = {}
end
end
-- ##############################################