forked from your-land-mirror/minetest-flow
Make __newindex a table
This commit is contained in:
parent
f5b7bc796a
commit
6745777bfc
4
init.lua
4
init.lua
@ -883,9 +883,7 @@ function Form:_render(player, ctx, formspec_version, id1, embedded, lang_code)
|
|||||||
used_ctx_vars[key] = true
|
used_ctx_vars[key] = true
|
||||||
return orig_form[key]
|
return orig_form[key]
|
||||||
end,
|
end,
|
||||||
__newindex = function(_, key, value)
|
__newindex = orig_form,
|
||||||
orig_form[key] = value
|
|
||||||
end,
|
|
||||||
})
|
})
|
||||||
ctx.form = wrapped_form
|
ctx.form = wrapped_form
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user