1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Try to preserve metatable information in serialzed data

This commit is contained in:
y5nw 2024-02-09 17:17:16 +01:00
parent 75dcd94b90
commit 24f0eb6bc1
5 changed files with 140 additions and 12 deletions

View file

@ -7655,7 +7655,7 @@ Misc.
* `core.register_portable_metatable(name, mt)`:
* Register a metatable that should be preserved when Lua data is transferred
between environments (via IPC or `handle_async`).
between environments (via IPC, `handle_async`, or `core.serialize`).
* `name` is a string that identifies the metatable. It is recommended to
follow the `modname:name` convention for this identifier.
* `mt` is the metatable to register.