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:
parent
75dcd94b90
commit
24f0eb6bc1
5 changed files with 140 additions and 12 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue